[WebAssembly] Use SelectionDAG::getUNDEF. NFC.
authorDan Gohman <dan433584@gmail.com>
Fri, 4 Dec 2015 17:09:42 +0000 (17:09 +0000)
committerDan Gohman <dan433584@gmail.com>
Fri, 4 Dec 2015 17:09:42 +0000 (17:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254726 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/WebAssembly/WebAssemblyISelLowering.cpp

index 2485df1..9f08605 100644 (file)
@@ -400,7 +400,7 @@ SDValue WebAssemblyTargetLowering::LowerFormalArguments(
         In.Used
             ? DAG.getNode(WebAssemblyISD::ARGUMENT, DL, In.VT,
                           DAG.getTargetConstant(InVals.size(), DL, MVT::i32))
-            : DAG.getNode(ISD::UNDEF, DL, In.VT));
+            : DAG.getUNDEF(In.VT));
 
     // Record the number and types of arguments.
     MF.getInfo<WebAssemblyFunctionInfo>()->addParam(In.VT);