projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[WebAssembly] Fix function return type printing
[oota-llvm.git]
/
lib
/
Target
/
WebAssembly
/
WebAssemblyISelLowering.cpp
diff --git
a/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
b/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
index 47eea934b8cd759f80dd89864488a22c3787d5e5..bae4f526723ec2d254ff0948852664d66a98cd15 100644
(file)
--- a/
lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
+++ b/
lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
@@
-326,8
+326,6
@@
SDValue WebAssemblyTargetLowering::LowerReturn(
const SmallVectorImpl<ISD::OutputArg> &Outs,
const SmallVectorImpl<SDValue> &OutVals, SDLoc DL,
SelectionDAG &DAG) const {
const SmallVectorImpl<ISD::OutputArg> &Outs,
const SmallVectorImpl<SDValue> &OutVals, SDLoc DL,
SelectionDAG &DAG) const {
- MachineFunction &MF = DAG.getMachineFunction();
-
assert(Outs.size() <= 1 && "WebAssembly can only return up to one value");
if (CallConv != CallingConv::C)
fail(DL, DAG, "WebAssembly doesn't support non-C calling conventions");
assert(Outs.size() <= 1 && "WebAssembly can only return up to one value");
if (CallConv != CallingConv::C)
fail(DL, DAG, "WebAssembly doesn't support non-C calling conventions");
@@
-352,7
+350,6
@@
SDValue WebAssemblyTargetLowering::LowerReturn(
fail(DL, DAG, "WebAssembly hasn't implemented cons regs last results");
if (!Out.IsFixed)
fail(DL, DAG, "WebAssembly doesn't support non-fixed results yet");
fail(DL, DAG, "WebAssembly hasn't implemented cons regs last results");
if (!Out.IsFixed)
fail(DL, DAG, "WebAssembly doesn't support non-fixed results yet");
- MF.getInfo<WebAssemblyFunctionInfo>()->addResult(Out.VT);
}
return Chain;
}
return Chain;