[llvm] r253150 - [WebAssembly] Minor code simplification. NFC.
Dan Gohman via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 14 15:28:15 PST 2015
Author: djg
Date: Sat Nov 14 17:28:15 2015
New Revision: 253150
URL: http://llvm.org/viewvc/llvm-project?rev=253150&view=rev
Log:
[WebAssembly] Minor code simplification. NFC.
Modified:
llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
Modified: llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp?rev=253150&r1=253149&r2=253150&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp Sat Nov 14 17:28:15 2015
@@ -369,7 +369,6 @@ SDValue WebAssemblyTargetLowering::Lower
if (IsVarArg)
fail(DL, DAG, "WebAssembly doesn't support varargs yet");
- unsigned ArgNo = 0;
for (const ISD::InputArg &In : Ins) {
if (In.Flags.isByVal())
fail(DL, DAG, "WebAssembly hasn't implemented byval arguments");
@@ -385,12 +384,11 @@ SDValue WebAssemblyTargetLowering::Lower
InVals.push_back(
In.Used
? DAG.getNode(WebAssemblyISD::ARGUMENT, DL, In.VT,
- DAG.getTargetConstant(ArgNo, DL, MVT::i32))
+ DAG.getTargetConstant(InVals.size(), DL, MVT::i32))
: DAG.getNode(ISD::UNDEF, DL, In.VT));
// Record the number and types of arguments.
MF.getInfo<WebAssemblyFunctionInfo>()->addParam(In.VT);
- ++ArgNo;
}
return Chain;
More information about the llvm-commits
mailing list