[llvm] r184831 - [NVPTX] Default pointer type doesn't make sense for getParamSymbol()
Justin Holewinski
jholewinski at nvidia.com
Tue Jun 25 05:22:21 PDT 2013
Author: jholewinski
Date: Tue Jun 25 07:22:21 2013
New Revision: 184831
URL: http://llvm.org/viewvc/llvm-project?rev=184831&view=rev
Log:
[NVPTX] Default pointer type doesn't make sense for getParamSymbol()
Modified:
llvm/trunk/lib/Target/NVPTX/NVPTXISelLowering.cpp
llvm/trunk/lib/Target/NVPTX/NVPTXISelLowering.h
Modified: llvm/trunk/lib/Target/NVPTX/NVPTXISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/NVPTX/NVPTXISelLowering.cpp?rev=184831&r1=184830&r2=184831&view=diff
==============================================================================
--- llvm/trunk/lib/Target/NVPTX/NVPTXISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/NVPTX/NVPTXISelLowering.cpp Tue Jun 25 07:22:21 2013
@@ -1135,7 +1135,7 @@ SDValue NVPTXTargetLowering::LowerFormal
// 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(
Modified: llvm/trunk/lib/Target/NVPTX/NVPTXISelLowering.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/NVPTX/NVPTXISelLowering.h?rev=184831&r1=184830&r2=184831&view=diff
==============================================================================
--- llvm/trunk/lib/Target/NVPTX/NVPTXISelLowering.h (original)
+++ llvm/trunk/lib/Target/NVPTX/NVPTXISelLowering.h Tue Jun 25 07:22:21 2013
@@ -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;
More information about the llvm-commits
mailing list