diff options
author | Justin Holewinski <jholewinski@nvidia.com> | 2013-06-25 12:22:21 +0000 |
---|---|---|
committer | Justin Holewinski <jholewinski@nvidia.com> | 2013-06-25 12:22:21 +0000 |
commit | 5df8c1bbb66a6b7386c9d7866592ecbb646da66c (patch) | |
tree | fc987a9a03e9d9df9d1fb61df36aa44519c63a45 /lib/Target | |
parent | 58bf5ea452116e90ce7147ab2e32d40173dcc098 (diff) | |
download | external_llvm-5df8c1bbb66a6b7386c9d7866592ecbb646da66c.zip external_llvm-5df8c1bbb66a6b7386c9d7866592ecbb646da66c.tar.gz external_llvm-5df8c1bbb66a6b7386c9d7866592ecbb646da66c.tar.bz2 |
[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
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/NVPTX/NVPTXISelLowering.cpp | 2 | ||||
-rw-r--r-- | lib/Target/NVPTX/NVPTXISelLowering.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/NVPTX/NVPTXISelLowering.cpp b/lib/Target/NVPTX/NVPTXISelLowering.cpp index 6b10cd4..be8e130 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 c4119c6..2ec9436 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; |