Skip to content

Commit 4faa1d4

Browse files
committed
Use simpler way to get Module handle.
1 parent d31c08d commit 4faa1d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6858,7 +6858,7 @@ static void FixupDebugInfoForOutlinedFunction(
68586858
// An extra argument is passed to the device. Create the debug data for it.
68596859
if (OMPBuilder.Config.isTargetDevice()) {
68606860
DICompileUnit *CU = NewSP->getUnit();
6861-
auto M = Builder.GetInsertBlock()->getModule();
6861+
Module *M = Func->getParent();
68626862
DIBuilder DB(*M, true, CU);
68636863
DIType *VoidPtrTy =
68646864
DB.createQualifiedType(dwarf::DW_TAG_pointer_type, nullptr);

0 commit comments

Comments
 (0)