[PATCH] D20309: AMDGPU: Fix assert when erroring on a call

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon May 16 15:27:30 PDT 2016


arsenm created this revision.
arsenm added a reviewer: tstellarAMD.
arsenm added a subscriber: llvm-commits.
Herald added subscribers: kzhuravl, arsenm.

For some reason an assert is now hit when a valid chain is not returned, so return the entry chain.

http://reviews.llvm.org/D20309

Files:
  lib/Target/AMDGPU/AMDGPUISelLowering.cpp

Index: lib/Target/AMDGPU/AMDGPUISelLowering.cpp
===================================================================
--- lib/Target/AMDGPU/AMDGPUISelLowering.cpp
+++ lib/Target/AMDGPU/AMDGPUISelLowering.cpp
@@ -619,7 +619,7 @@
   DiagnosticInfoUnsupported NoCalls(
       Fn, "unsupported call to function " + FuncName, CLI.DL.getDebugLoc());
   DAG.getContext()->diagnose(NoCalls);
-  return SDValue();
+  return DAG.getEntryNode();
 }
 
 SDValue AMDGPUTargetLowering::LowerDYNAMIC_STACKALLOC(SDValue Op,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20309.57411.patch
Type: text/x-patch
Size: 505 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160516/7f2e570d/attachment.bin>


More information about the llvm-commits mailing list