From: JF Bastien Date: Thu, 28 Jan 2016 05:05:17 +0000 (+0000) Subject: WebAssembly: fix build X-Git-Tag: llvmorg-3.9.0-rc1~15770 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1e02c70ba30ddd7c0ba7ad92d1e910441f5f7c60;p=platform%2Fupstream%2Fllvm.git WebAssembly: fix build r259016 didn't also revert r258957 which broken the WebAssembly build. llvm-svn: 259020 --- diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp index c12016b..5211fe7 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp +++ b/llvm/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.