From d1b64bf2516cc844a14899b34196cec1b48a43e1 Mon Sep 17 00:00:00 2001 From: JF Bastien Date: Thu, 28 Jan 2016 05:05:17 +0000 Subject: [PATCH] WebAssembly: fix build r259016 didn't also revert r258957 which broken the WebAssembly build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@259020 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/WebAssembly/WebAssemblyISelLowering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp b/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp index c12016b8d2a..5211fe72267 100644 --- a/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp +++ b/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp @@ -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.