Remove unused variable.
[oota-llvm.git] / lib / CodeGen / IntrinsicLowering.cpp
index 07f0ccf52f8c9a7afe91ca55d266750f83d4edc2..d894f664dcb3dd19c2abd33e0c3dd8a54f2704fb 100644 (file)
@@ -453,6 +453,12 @@ void IntrinsicLowering::LowerIntrinsicCall(CallInst *CI) {
     CI->replaceAllUsesWith(ConstantInt::get(CI->getType(), 1));
     break;
 
+  case Intrinsic::annotation:
+  case Intrinsic::ptr_annotation:
+    // Just drop the annotation, but forward the value
+    CI->replaceAllUsesWith(CI->getOperand(0));
+    break;
+
   case Intrinsic::var_annotation:
     break;   // Strip out annotate intrinsic