diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-12-03 17:05:59 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-12-03 17:05:59 +0000 |
commit | 109ae73ec71a1d27358510ce049b59637b4a6b40 (patch) | |
tree | 6491a764855db520c89ef2380703ba82a17b0c57 /lib/Basic/SourceManager.cpp | |
parent | c085a981cec80d1c2e39182116700f200c98c880 (diff) | |
download | clang-109ae73ec71a1d27358510ce049b59637b4a6b40.tar.gz |
Minor cleanup to the code-completion-point logic suggested by Chris.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90459 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/SourceManager.cpp')
-rw-r--r-- | lib/Basic/SourceManager.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Basic/SourceManager.cpp b/lib/Basic/SourceManager.cpp index 8cc7a8438d..a3e72e8b40 100644 --- a/lib/Basic/SourceManager.cpp +++ b/lib/Basic/SourceManager.cpp @@ -47,8 +47,7 @@ unsigned ContentCache::getSize() const { } void ContentCache::replaceBuffer(const llvm::MemoryBuffer *B) { - if (B == Buffer) - return; + assert(B != Buffer); delete Buffer; Buffer = B; |