[llvm-commits] [llvm] r132353 - /llvm/trunk/lib/VMCore/Verifier.cpp
Eli Friedman
eli.friedman at gmail.com
Tue May 31 13:12:07 PDT 2011
Author: efriedma
Date: Tue May 31 15:12:07 2011
New Revision: 132353
URL: http://llvm.org/viewvc/llvm-project?rev=132353&view=rev
Log:
Add a minor missing -verify check. Found by inspection.
Modified:
llvm/trunk/lib/VMCore/Verifier.cpp
Modified: llvm/trunk/lib/VMCore/Verifier.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Verifier.cpp?rev=132353&r1=132352&r2=132353&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Verifier.cpp (original)
+++ llvm/trunk/lib/VMCore/Verifier.cpp Tue May 31 15:12:07 2011
@@ -1645,6 +1645,9 @@
Assert1(isa<ConstantInt>(CI.getArgOperand(3)),
"alignment argument of memory intrinsics must be a constant int",
&CI);
+ Assert1(isa<ConstantInt>(CI.getArgOperand(4)),
+ "isvolatile argument of memory intrinsics must be a constant int",
+ &CI);
break;
case Intrinsic::gcroot:
case Intrinsic::gcwrite:
More information about the llvm-commits
mailing list