The changes fix the issue
https://github.com/llvm/llvm-project/issues/55911
We can't guarantee the long always 64 bits like WINDOWS or LLP64 data model (rare but we should consider).
So use int64_t from inttypes.h and safe in this case.
Differential D130500
Change long to int64_t (which is always 64 bit or 8 bytes ) umesh.kalappa0 on Jul 25 2022, 9:54 AM. Authored by
Details
The changes fix the issue We can't guarantee the long always 64 bits like WINDOWS or LLP64 data model (rare but we should consider). So use int64_t from inttypes.h and safe in this case.
Diff Detail Event Timeline
Comment Actions LGTM with formatting fixed.
Comment Actions f38ea84a9f32058f3c2813b6f29b840c59de118c (forgot to put the "differential revision" line) |
clang-format is complaining this line is too long.
Might as well remove unnecessary parentheses around IsZExt while you're here.