WebAssembly: fix build

r259016 didn't also revert r258957 which broken the WebAssembly build.

llvm-svn: 259020
This commit is contained in:
JF Bastien 2016-01-28 05:05:17 +00:00
parent 569f207018
commit 1e02c70ba3
1 changed files with 1 additions and 1 deletions

View File

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