We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d31c08d commit 4faa1d4Copy full SHA for 4faa1d4
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
@@ -6858,7 +6858,7 @@ static void FixupDebugInfoForOutlinedFunction(
6858
// An extra argument is passed to the device. Create the debug data for it.
6859
if (OMPBuilder.Config.isTargetDevice()) {
6860
DICompileUnit *CU = NewSP->getUnit();
6861
- auto M = Builder.GetInsertBlock()->getModule();
+ Module *M = Func->getParent();
6862
DIBuilder DB(*M, true, CU);
6863
DIType *VoidPtrTy =
6864
DB.createQualifiedType(dwarf::DW_TAG_pointer_type, nullptr);
0 commit comments