From: Justin Holewinski Date: Tue, 25 Jun 2013 12:22:21 +0000 (+0000) Subject: [NVPTX] Default pointer type doesn't make sense for getParamSymbol() X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5df8c1bbb66a6b7386c9d7866592ecbb646da66c;p=oota-llvm.git [NVPTX] Default pointer type doesn't make sense for getParamSymbol() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184831 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/NVPTX/NVPTXISelLowering.cpp b/lib/Target/NVPTX/NVPTXISelLowering.cpp index 6b10cd4bd87..be8e1304a1f 100644 --- a/lib/Target/NVPTX/NVPTXISelLowering.cpp +++ b/lib/Target/NVPTX/NVPTXISelLowering.cpp @@ -1135,7 +1135,7 @@ SDValue NVPTXTargetLowering::LowerFormalArguments( // A plain scalar. if (isABI || isKernel) { // If ABI, load from the param symbol - SDValue Arg = getParamSymbol(DAG, idx); + SDValue Arg = getParamSymbol(DAG, idx, getPointerTy()); // Conjure up a value that we can get the address space from. // FIXME: Using a constant here is a hack. Value *srcValue = Constant::getNullValue( diff --git a/lib/Target/NVPTX/NVPTXISelLowering.h b/lib/Target/NVPTX/NVPTXISelLowering.h index c4119c6497a..2ec943605ad 100644 --- a/lib/Target/NVPTX/NVPTXISelLowering.h +++ b/lib/Target/NVPTX/NVPTXISelLowering.h @@ -144,7 +144,7 @@ private: SDValue getExtSymb(SelectionDAG &DAG, const char *name, int idx, EVT = MVT::i32) const; - SDValue getParamSymbol(SelectionDAG &DAG, int idx, EVT = MVT::i32) const; + SDValue getParamSymbol(SelectionDAG &DAG, int idx, EVT) const; SDValue getParamHelpSymbol(SelectionDAG &DAG, int idx); SDValue LowerCONCAT_VECTORS(SDValue Op, SelectionDAG &DAG) const;