[llvm] r203084 - Fix break by qualifying ptrdiff_t with std::.
Ahmed Charles
ahmedcharles at gmail.com
Wed Mar 5 22:05:26 PST 2014
Author: ace2001ac
Date: Thu Mar 6 00:05:26 2014
New Revision: 203084
URL: http://llvm.org/viewvc/llvm-project?rev=203084&view=rev
Log:
Fix break by qualifying ptrdiff_t with std::.
Modified:
llvm/trunk/lib/Support/StreamableMemoryObject.cpp
Modified: llvm/trunk/lib/Support/StreamableMemoryObject.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/StreamableMemoryObject.cpp?rev=203084&r1=203083&r2=203084&view=diff
==============================================================================
--- llvm/trunk/lib/Support/StreamableMemoryObject.cpp (original)
+++ llvm/trunk/lib/Support/StreamableMemoryObject.cpp Thu Mar 6 00:05:26 2014
@@ -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;
More information about the llvm-commits
mailing list