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 | 0a685a9a52e1471a9ee15fe6ed7a0b25b7915a3f (patch) | |
tree | 24113be0733fc8e24c30b2a81b5a0e8b8555bd7f | |
parent | 56440fd8203f581b9aded68db3631ea11a72ccf2 (diff) | |
download | bcm5719-llvm-0a685a9a52e1471a9ee15fe6ed7a0b25b7915a3f.tar.gz bcm5719-llvm-0a685a9a52e1471a9ee15fe6ed7a0b25b7915a3f.zip |
Fix break by qualifying ptrdiff_t with std::.
llvm-svn: 203084
-rw-r--r-- | llvm/lib/Support/StreamableMemoryObject.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/StreamableMemoryObject.cpp b/llvm/lib/Support/StreamableMemoryObject.cpp index 2cc87fc1abe..df7620ae6b2 100644 --- a/llvm/lib/Support/StreamableMemoryObject.cpp +++ b/llvm/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; |