diff options
author | Ahmed Charles <ahmedcharles@gmail.com> | 2014-03-06 06:05:26 +0000 |
---|---|---|
committer | Ahmed Charles <ahmedcharles@gmail.com> | 2014-03-06 06:05:26 +0000 |
commit | acc8fb158ea0894dea4929c8c3a3193587362b79 (patch) | |
tree | 8b8f2c7bb77703c4f3eb96282111d89c15148959 /lib/Support/StreamableMemoryObject.cpp | |
parent | f4ccd110750a3f3fe6a107d5c74c649c2a0dc407 (diff) | |
download | llvm-acc8fb158ea0894dea4929c8c3a3193587362b79.tar.gz llvm-acc8fb158ea0894dea4929c8c3a3193587362b79.tar.bz2 llvm-acc8fb158ea0894dea4929c8c3a3193587362b79.tar.xz |
Fix break by qualifying ptrdiff_t with std::.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203084 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/StreamableMemoryObject.cpp')
-rw-r--r-- | lib/Support/StreamableMemoryObject.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/StreamableMemoryObject.cpp b/lib/Support/StreamableMemoryObject.cpp index 2cc87fc1ab..df7620ae6b 100644 --- a/lib/Support/StreamableMemoryObject.cpp +++ b/lib/Support/StreamableMemoryObject.cpp @@ -48,10 +48,10 @@ private: // These are implemented as inline functions here to avoid multiple virtual // calls per public function bool validAddress(uint64_t address) const { - return static_cast<ptrdiff_t>(address) < LastChar - FirstChar; + return static_cast<std::ptrdiff_t>(address) < LastChar - FirstChar; } bool objectEnd(uint64_t address) const { - return static_cast<ptrdiff_t>(address) == LastChar - FirstChar; + return static_cast<std::ptrdiff_t>(address) == LastChar - FirstChar; } RawMemoryObject(const RawMemoryObject&) LLVM_DELETED_FUNCTION; |