mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-13 06:34:24 +00:00
[Safepoints][Verifier] Fix a tautological Assert.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237287 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3f0ca03e94
commit
f11e64dc03
@ -1539,7 +1539,7 @@ void Verifier::VerifyStatepoint(ImmutableCallSite CS) {
|
||||
Assert(isa<ConstantInt>(NumPatchBytesV),
|
||||
"gc.statepoint number of patchable bytes must be a constant integer",
|
||||
&CI);
|
||||
const uint64_t NumPatchBytes =
|
||||
const int64_t NumPatchBytes =
|
||||
cast<ConstantInt>(NumPatchBytesV)->getSExtValue();
|
||||
assert(isInt<32>(NumPatchBytes) && "NumPatchBytesV is an i32!");
|
||||
Assert(NumPatchBytes >= 0, "gc.statepoint number of patchable bytes must be "
|
||||
|
Loading…
x
Reference in New Issue
Block a user