use CallSite::arg_end instead of CallInst::op_end
authorGabor Greif <ggreif@gmail.com>
Wed, 30 Jun 2010 12:39:23 +0000 (12:39 +0000)
committerGabor Greif <ggreif@gmail.com>
Wed, 30 Jun 2010 12:39:23 +0000 (12:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107276 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/IntrinsicLowering.cpp

index b5951f1a08750140c43a188373f15d10ca52cf13..03ae214ae7dab64fab3869962a566af280ab0df3 100644 (file)
@@ -375,7 +375,7 @@ void IntrinsicLowering::LowerIntrinsicCall(CallInst *CI) {
 
   case Intrinsic::siglongjmp: {
     // Insert the call to abort
-    ReplaceCallWith("abort", CI, CI->op_end(), CI->op_end(), 
+    ReplaceCallWith("abort", CI, CS.arg_end(), CS.arg_end(), 
                     Type::getVoidTy(Context));
     break;
   }