I'm pretty sure an int32_t will always be between INT32_MAX and
INT32_MIN, inclusive.
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 11155 Build 11155: arc lint + arc unit
Event Timeline
Comment Actions
I'd wait for @compnerd to take a look before acting on my comments, since I don't have much context on this code.
| lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldCOFFI386.h | ||
|---|---|---|
| 146–147 | A VA is unsigned, so "relocation underflow" doesn't make much sense to me. I'd just assert Result <= UINT32_MAX instead. | |
| 160–161 | Same here. | |
| 198–199 | Same here (though you'll need a cast to uint64_t). | |
| lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldCOFFI386.h | ||
|---|---|---|
| 146–147 | Yeah, given that it is a VA, we can remove the underflow check as it cannot happen. | |
A VA is unsigned, so "relocation underflow" doesn't make much sense to me. I'd just assert Result <= UINT32_MAX instead.