[llvm] r237287 - [Safepoints][Verifier] Fix a tautological Assert.

Sanjoy Das sanjoy at playingwithpointers.com
Wed May 13 13:11:59 PDT 2015


Author: sanjoy
Date: Wed May 13 15:11:59 2015
New Revision: 237287

URL: http://llvm.org/viewvc/llvm-project?rev=237287&view=rev
Log:
[Safepoints][Verifier] Fix a tautological Assert.

Modified:
    llvm/trunk/lib/IR/Verifier.cpp

Modified: llvm/trunk/lib/IR/Verifier.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Verifier.cpp?rev=237287&r1=237286&r2=237287&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Verifier.cpp (original)
+++ llvm/trunk/lib/IR/Verifier.cpp Wed May 13 15:11:59 2015
@@ -1539,7 +1539,7 @@ void Verifier::VerifyStatepoint(Immutabl
   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 "





More information about the llvm-commits mailing list