diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2015-11-05 06:24:09 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2015-11-05 06:24:09 +0000 |
commit | 01556dede1d0f7decd6d3bd60411028ea89a90ae (patch) | |
tree | 38274300a68188f5f091ec3e51f4d11aafefd406 | |
parent | afd135197b23ae5a1bd03dba18e997099ea85448 (diff) | |
download | bcm5719-llvm-01556dede1d0f7decd6d3bd60411028ea89a90ae.tar.gz bcm5719-llvm-01556dede1d0f7decd6d3bd60411028ea89a90ae.zip |
RuntimeDyld: fix -Wtype-limits
Adjust the casted type. By casting to the same size rather than just the
signed-ness, we were asserting tautological statements. NFC.
llvm-svn: 252150
-rw-r--r-- | llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldCOFFI386.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldCOFFI386.h b/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldCOFFI386.h index ddf59693fa1..f593c9ab15d 100644 --- a/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldCOFFI386.h +++ b/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldCOFFI386.h @@ -161,9 +161,9 @@ public: } case COFF::IMAGE_REL_I386_SECTION: // 16-bit section index of the section that contains the target. - assert(static_cast<int16_t>(RE.SectionID) <= INT16_MAX && + assert(static_cast<int32_t>(RE.SectionID) <= INT16_MAX && "relocation overflow"); - assert(static_cast<int16_t>(RE.SectionID) >= INT16_MIN && + assert(static_cast<int32_t>(RE.SectionID) >= INT16_MIN && "relocation underflow"); DEBUG(dbgs() << "\t\tOffset: " << RE.Offset << " RelType: IMAGE_REL_I386_SECTION Value: " << RE.SectionID |