projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f0ca03
)
[Safepoints][Verifier] Fix a tautological Assert.
author
Sanjoy Das
<sanjoy@playingwithpointers.com>
Wed, 13 May 2015 20:11:59 +0000
(20:11 +0000)
committer
Sanjoy Das
<sanjoy@playingwithpointers.com>
Wed, 13 May 2015 20:11:59 +0000
(20:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237287
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/IR/Verifier.cpp
patch
|
blob
|
history
diff --git
a/lib/IR/Verifier.cpp
b/lib/IR/Verifier.cpp
index 4e863cb99b5cd40f816ca10f5bf81f2748d51ee0..f4bc289cf266316b0351b5f89d84c1d8e5f8d298 100644
(file)
--- a/
lib/IR/Verifier.cpp
+++ b/
lib/IR/Verifier.cpp
@@
-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
u
int64_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 "