aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support/SourceMgr.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2013-07-20 00:20:10 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2013-07-20 00:20:10 +0000
commitac9e819ca9ad93cfbcf0b7c5b0a7cbbd34cd9176 (patch)
tree49acd0c1eb309352a9b1ba8fa992f576fff7b5d0 /lib/Support/SourceMgr.cpp
parent7b61a701932d850d2777fafda1fea5ec841d893b (diff)
downloadexternal_llvm-ac9e819ca9ad93cfbcf0b7c5b0a7cbbd34cd9176.zip
external_llvm-ac9e819ca9ad93cfbcf0b7c5b0a7cbbd34cd9176.tar.gz
external_llvm-ac9e819ca9ad93cfbcf0b7c5b0a7cbbd34cd9176.tar.bz2
Fix size_t -> uint warnings with MSVC 64-bit build
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186736 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/SourceMgr.cpp')
-rw-r--r--lib/Support/SourceMgr.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Support/SourceMgr.cpp b/lib/Support/SourceMgr.cpp
index 4f650b4..51162dd 100644
--- a/lib/Support/SourceMgr.cpp
+++ b/lib/Support/SourceMgr.cpp
@@ -52,9 +52,9 @@ SourceMgr::~SourceMgr() {
/// AddIncludeFile - Search for a file with the specified name in the current
/// directory or in one of the IncludeDirs. If no file is found, this returns
/// ~0, otherwise it returns the buffer ID of the stacked file.
-unsigned SourceMgr::AddIncludeFile(const std::string &Filename,
- SMLoc IncludeLoc,
- std::string &IncludedFile) {
+size_t SourceMgr::AddIncludeFile(const std::string &Filename,
+ SMLoc IncludeLoc,
+ std::string &IncludedFile) {
OwningPtr<MemoryBuffer> NewBuf;
IncludedFile = Filename;
MemoryBuffer::getFile(IncludedFile.c_str(), NewBuf);