Updates to gc intrinsics, contributed by Tobias Nurmiranta
authorChris Lattner <sabre@nondot.org>
Thu, 22 Jul 2004 05:50:01 +0000 (05:50 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 22 Jul 2004 05:50:01 +0000 (05:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15096 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Verifier.cpp

index 8b903c70fd7039beac3a87ddbb104abd5e449755..2005dbf584522e83b55487290c5e98b1d9667e02 100644 (file)
@@ -711,8 +711,8 @@ void Verifier::visitIntrinsicFunctionCall(Intrinsic::ID ID, CallInst &CI) {
             "Second argument to llvm.gcroot must be a constant!", &CI);
     NumArgs = 2;
     break;
-  case Intrinsic::gcread:          NumArgs = 1; break;
-  case Intrinsic::gcwrite:         NumArgs = 2; break;
+  case Intrinsic::gcread:          NumArgs = 2; break;
+  case Intrinsic::gcwrite:         NumArgs = 3; break;
 
   case Intrinsic::dbg_stoppoint:   NumArgs = 4; break;
   case Intrinsic::dbg_region_start:NumArgs = 1; break;