From f11e64dc0370026df21ebf832912db87e8503e80 Mon Sep 17 00:00:00 2001 From: Sanjoy Das Date: Wed, 13 May 2015 20:11:59 +0000 Subject: [PATCH] [Safepoints][Verifier] Fix a tautological Assert. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237287 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/IR/Verifier.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/IR/Verifier.cpp b/lib/IR/Verifier.cpp index 4e863cb99b5..f4bc289cf26 100644 --- a/lib/IR/Verifier.cpp +++ b/lib/IR/Verifier.cpp @@ -1539,7 +1539,7 @@ void Verifier::VerifyStatepoint(ImmutableCallSite CS) { Assert(isa(NumPatchBytesV), "gc.statepoint number of patchable bytes must be a constant integer", &CI); - const uint64_t NumPatchBytes = + const int64_t NumPatchBytes = cast(NumPatchBytesV)->getSExtValue(); assert(isInt<32>(NumPatchBytes) && "NumPatchBytesV is an i32!"); Assert(NumPatchBytes >= 0, "gc.statepoint number of patchable bytes must be " -- 2.40.0