Changed intrinsic ID operand to a target constant as its not used in any arithmetic...
authorPete Cooper <peter_cooper@apple.com>
Mon, 16 Jan 2012 04:08:12 +0000 (04:08 +0000)
committerPete Cooper <peter_cooper@apple.com>
Mon, 16 Jan 2012 04:08:12 +0000 (04:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148228 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

index 67b4e9e10d0b4857a649112df3575d7bf86d880a..6270e4510e1102c4435d961b8b2a085b1fa52387 100644 (file)
@@ -3516,7 +3516,7 @@ void SelectionDAGBuilder::visitTargetIntrinsic(const CallInst &I,
   // Add the intrinsic ID as an integer operand if it's not a target intrinsic.
   if (!IsTgtIntrinsic || Info.opc == ISD::INTRINSIC_VOID ||
       Info.opc == ISD::INTRINSIC_W_CHAIN)
-    Ops.push_back(DAG.getConstant(Intrinsic, TLI.getPointerTy()));
+    Ops.push_back(DAG.getTargetConstant(Intrinsic, TLI.getPointerTy()));
 
   // Add all operands of the call to the operand list.
   for (unsigned i = 0, e = I.getNumArgOperands(); i != e; ++i) {