diff --git a/lib/Support/StreamableMemoryObject.cpp b/lib/Support/StreamableMemoryObject.cpp index 2cc87fc1abe..df7620ae6b2 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(address) < LastChar - FirstChar; + return static_cast(address) < LastChar - FirstChar; } bool objectEnd(uint64_t address) const { - return static_cast(address) == LastChar - FirstChar; + return static_cast(address) == LastChar - FirstChar; } RawMemoryObject(const RawMemoryObject&) LLVM_DELETED_FUNCTION;