WebAssembly: fix build
authorJF Bastien <jfb@google.com>
Thu, 28 Jan 2016 05:05:17 +0000 (05:05 +0000)
committerJF Bastien <jfb@google.com>
Thu, 28 Jan 2016 05:05:17 +0000 (05:05 +0000)
r259016 didn't also revert r258957 which broken the WebAssembly build.

llvm-svn: 259020

llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp

index c12016b..5211fe7 100644 (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.