Use the right accessor to create this node
authorChris Lattner <sabre@nondot.org>
Thu, 17 Nov 2005 17:51:38 +0000 (17:51 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 17 Nov 2005 17:51:38 +0000 (17:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24394 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCISelLowering.cpp

index 437e4369bf07e3375709d922a4bbb74905125942..3b7a706f52c10f9bc066646b7fdd77f6c62a028f 100644 (file)
@@ -343,7 +343,7 @@ SDOperand PPCTargetLowering::LowerOperation(SDOperand Op, SelectionDAG &DAG) {
     if (PICEnabled) {
       // With PIC, the first instruction is actually "GR+hi(&G)".
       Hi = DAG.getNode(ISD::ADD, MVT::i32,
-                       DAG.getTargetNode(PPCISD::GlobalBaseReg, MVT::i32), Hi);
+                       DAG.getNode(PPCISD::GlobalBaseReg, MVT::i32), Hi);
     }
     
     SDOperand Lo = DAG.getNode(PPCISD::Lo, MVT::i32, GA, Zero);