summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-03-10 18:22:38 +0000
committerTed Kremenek <kremenek@apple.com>2010-03-10 18:22:38 +0000
commit4a26524050628cb9d5d02061b847a8d25edb447d (patch)
tree0f91a9715b038b4f1cc3683c0527a4be99c00367 /clang/lib/Basic/SourceManager.cpp
parent66839831a7a1fb0b8a81ba72188167998e127f1f (diff)
downloadbcm5719-llvm-4a26524050628cb9d5d02061b847a8d25edb447d.tar.gz
bcm5719-llvm-4a26524050628cb9d5d02061b847a8d25edb447d.zip
Fix -Wsign-compare warning reported by clang++.
llvm-svn: 98170
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
-rw-r--r--clang/lib/Basic/SourceManager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Basic/SourceManager.cpp b/clang/lib/Basic/SourceManager.cpp
index 0c22de7bddb..156b809b51f 100644
--- a/clang/lib/Basic/SourceManager.cpp
+++ b/clang/lib/Basic/SourceManager.cpp
@@ -43,7 +43,8 @@ unsigned ContentCache::getSizeBytesMapped() const {
/// scratch buffer. If the ContentCache encapsulates a source file, that
/// file is not lazily brought in from disk to satisfy this query.
unsigned ContentCache::getSize() const {
- return Buffer ? Buffer->getBufferSize() : Entry->getSize();
+ return Buffer ? (unsigned) Buffer->getBufferSize()
+ : (unsigned) Entry->getSize();
}
void ContentCache::replaceBuffer(const llvm::MemoryBuffer *B) {
OpenPOWER on IntegriCloud