summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/StreamableMemoryObject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Support/StreamableMemoryObject.cpp')
-rw-r--r--llvm/lib/Support/StreamableMemoryObject.cpp4
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;
OpenPOWER on IntegriCloud