mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Fix bogus assertion using getSExtValue for legitimate values, like -1 in
an 128-bit-wide integer. No testcase; the issue I ran into depends on local changes. llvm-svn: 60311
This commit is contained in:
parent
1f8482ffc8
commit
401743c904
@ -1046,7 +1046,7 @@ public:
|
|||||||
if (isSingleWord())
|
if (isSingleWord())
|
||||||
return int64_t(VAL << (APINT_BITS_PER_WORD - BitWidth)) >>
|
return int64_t(VAL << (APINT_BITS_PER_WORD - BitWidth)) >>
|
||||||
(APINT_BITS_PER_WORD - BitWidth);
|
(APINT_BITS_PER_WORD - BitWidth);
|
||||||
assert(getActiveBits() <= 64 && "Too many bits for int64_t");
|
assert(getMinSignedBits() <= 64 && "Too many bits for int64_t");
|
||||||
return int64_t(pVal[0]);
|
return int64_t(pVal[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user