From 1e02c70ba30ddd7c0ba7ad92d1e910441f5f7c60 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. llvm-svn: 259020 --- llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.7.4