Unbreak the wasm backend again after r259035.

llvm-svn: 259040
This commit is contained in:
Benjamin Kramer 2016-01-28 11:26:34 +00:00
parent 935bb972c6
commit d7fec51f3a

View File

@ -255,7 +255,7 @@ bool WebAssemblyTargetLowering::allowsMisalignedMemoryAccesses(
static void fail(SDLoc DL, SelectionDAG &DAG, const char *msg) {
MachineFunction &MF = DAG.getMachineFunction();
DAG.getContext()->diagnose(
DiagnosticInfoUnsupported(DL, *MF.getFunction(), msg, SDValue()));
DiagnosticInfoUnsupported(*MF.getFunction(), msg, DL));
}
// Test whether the given calling convention is supported.