summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Verifier.cpp
diff options
context:
space:
mode:
authorSanjoy Das <sanjoy@playingwithpointers.com>2015-05-13 20:11:59 +0000
committerSanjoy Das <sanjoy@playingwithpointers.com>2015-05-13 20:11:59 +0000
commit9af34eb7953e5b8d45cd8abf2fcf44f31674729d (patch)
treea9b020bde0cfa1c2f8906894a0573c41a4b8696e /llvm/lib/IR/Verifier.cpp
parentba74e645d8ccb762891b7c2970727526a1e8120e (diff)
downloadbcm5719-llvm-9af34eb7953e5b8d45cd8abf2fcf44f31674729d.tar.gz
bcm5719-llvm-9af34eb7953e5b8d45cd8abf2fcf44f31674729d.zip
[Safepoints][Verifier] Fix a tautological Assert.
llvm-svn: 237287
Diffstat (limited to 'llvm/lib/IR/Verifier.cpp')
-rw-r--r--llvm/lib/IR/Verifier.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp
index 4e863cb99b5..f4bc289cf26 100644
--- a/llvm/lib/IR/Verifier.cpp
+++ b/llvm/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 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 "
OpenPOWER on IntegriCloud