Implement MipsTargetLowering::CanLowerReturn.
[oota-llvm.git] / lib / Target / NVPTX / NVPTXISelLowering.cpp
index 76ad673da80801c1289813f18fb62fe2d70ac27b..be771e35677fcb2c603696486ffcab6fd7ccf734 100644 (file)
@@ -965,7 +965,7 @@ NVPTXTargetLowering::LowerFormalArguments(SDValue Chain,
     // to newly created nodes. The SDNOdes for params have to
     // appear in the same order as their order of appearance
     // in the original function. "idx+1" holds that order.
-    if (PAL.getParamAttributes(i+1).hasByValAttr() == false) {
+    if (PAL.getParamAttributes(i+1).hasAttribute(Attributes::ByVal) == false) {
       // A plain scalar.
       if (isABI || isKernel) {
         // If ABI, load from the param symbol