forked from OSchip/llvm-project
[Safepoints][Verifier] Fix a tautological Assert.
llvm-svn: 237287
This commit is contained in:
parent
ba74e645d8
commit
9af34eb795
|
@ -1539,7 +1539,7 @@ void Verifier::VerifyStatepoint(ImmutableCallSite CS) {
|
||||||
Assert(isa<ConstantInt>(NumPatchBytesV),
|
Assert(isa<ConstantInt>(NumPatchBytesV),
|
||||||
"gc.statepoint number of patchable bytes must be a constant integer",
|
"gc.statepoint number of patchable bytes must be a constant integer",
|
||||||
&CI);
|
&CI);
|
||||||
const uint64_t NumPatchBytes =
|
const int64_t NumPatchBytes =
|
||||||
cast<ConstantInt>(NumPatchBytesV)->getSExtValue();
|
cast<ConstantInt>(NumPatchBytesV)->getSExtValue();
|
||||||
assert(isInt<32>(NumPatchBytes) && "NumPatchBytesV is an i32!");
|
assert(isInt<32>(NumPatchBytes) && "NumPatchBytesV is an i32!");
|
||||||
Assert(NumPatchBytes >= 0, "gc.statepoint number of patchable bytes must be "
|
Assert(NumPatchBytes >= 0, "gc.statepoint number of patchable bytes must be "
|
||||||
|
|
Loading…
Reference in New Issue