summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-12-03 17:05:59 +0000
committerDouglas Gregor <dgregor@apple.com>2009-12-03 17:05:59 +0000
commit5f498834881dd4c36eadf903359b81ce63f731c9 (patch)
treea3603d5cddad0da3d2e1c20cdf97d133ddaaa150 /clang/lib/Basic/SourceManager.cpp
parentcdeb800152471d36ea2c424ca78228de619c52ef (diff)
downloadbcm5719-llvm-5f498834881dd4c36eadf903359b81ce63f731c9.tar.gz
bcm5719-llvm-5f498834881dd4c36eadf903359b81ce63f731c9.zip
Minor cleanup to the code-completion-point logic suggested by Chris.
llvm-svn: 90459
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
-rw-r--r--clang/lib/Basic/SourceManager.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Basic/SourceManager.cpp b/clang/lib/Basic/SourceManager.cpp
index 8cc7a8438d2..a3e72e8b407 100644
--- a/clang/lib/Basic/SourceManager.cpp
+++ b/clang/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;
OpenPOWER on IntegriCloud