summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitfe8ff5ccda3efffa830d515dfcf14e87f31e96b4 (patch)
treece79afd479db8a99358c5f0edeedc0fcc06bcc0c /llvm/lib/Support/SourceMgr.cpp
parent24864fe1503991d5bcb9645939310c8a4e1e24df (diff)
downloadbcm5719-llvm-fe8ff5ccda3efffa830d515dfcf14e87f31e96b4.tar.gz
bcm5719-llvm-fe8ff5ccda3efffa830d515dfcf14e87f31e96b4.zip
Fix size_t -> uint warnings with MSVC 64-bit build
llvm-svn: 186736
Diffstat (limited to 'llvm/lib/Support/SourceMgr.cpp')
-rw-r--r--llvm/lib/Support/SourceMgr.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Support/SourceMgr.cpp b/llvm/lib/Support/SourceMgr.cpp
index 4f650b42cce..51162dd342d 100644
--- a/llvm/lib/Support/SourceMgr.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud