[llvm-commits] CVS: llvm/lib/VMCore/Verifier.cpp
Jim Laskey
jlaskey at apple.com
Tue Feb 6 10:03:17 PST 2007
Changes in directory llvm/lib/VMCore:
Verifier.cpp updated: 1.190 -> 1.191
---
Log message:
Support var arg intrinsics.
---
Diffs of the changes: (+4 -0)
Verifier.cpp | 4 ++++
1 files changed, 4 insertions(+)
Index: llvm/lib/VMCore/Verifier.cpp
diff -u llvm/lib/VMCore/Verifier.cpp:1.190 llvm/lib/VMCore/Verifier.cpp:1.191
--- llvm/lib/VMCore/Verifier.cpp:1.190 Mon Feb 5 14:47:20 2007
+++ llvm/lib/VMCore/Verifier.cpp Tue Feb 6 12:02:54 2007
@@ -987,6 +987,10 @@
for (unsigned ArgNo = 0; 1; ++ArgNo) {
int TypeID = va_arg(VA, int);
+ if (TypeID == -2) {
+ break;
+ }
+
if (TypeID == -1) {
if (ArgNo != FTy->getNumParams()+1)
CheckFailed("Intrinsic prototype has too many arguments!", F);
More information about the llvm-commits
mailing list