[NVPTX] Default pointer type doesn't make sense for getParamSymbol()
authorJustin Holewinski <jholewinski@nvidia.com>
Tue, 25 Jun 2013 12:22:21 +0000 (12:22 +0000)
committerJustin Holewinski <jholewinski@nvidia.com>
Tue, 25 Jun 2013 12:22:21 +0000 (12:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184831 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/NVPTX/NVPTXISelLowering.cpp
lib/Target/NVPTX/NVPTXISelLowering.h

index 6b10cd4bd87da40f66ca4a57203605f5acb1f899..be8e1304a1f5a05e56671110f5ff52eb23ea23e4 100644 (file)
@@ -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(
index c4119c6497ad72aef2cda94b0ba6461bf4b50a63..2ec943605ad069745a81960e9f49ecc9e36d6e98 100644 (file)
@@ -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;