1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

Unbreak wasm build after r258951.

llvm-svn: 258957
This commit is contained in:
Benjamin Kramer 2016-01-27 18:03:40 +00:00
parent 4b661f540a
commit 164a0ed653

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.