git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184831
91177308-0d34-0410-b5e6-
96231b3b80d8
// 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(
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;