Skip to content

Commit ab017fb

Browse files
committed
Replacement of getMMI method
1 parent 9f38912 commit ab017fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/SPIRV/SPIRVEmitNonSemanticDI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ bool SPIRVEmitNonSemanticDI::emitGlobalDI(MachineFunction &MF) {
7474
// Searching through the Module metadata to find nescessary
7575
// information like DwarfVersion or SourceLanguage
7676
{
77-
const MachineModuleInfo &MMI = MF.getMMI();
77+
const MachineModuleInfo &MMI = getAnalysis<MachineModuleInfoWrapperPass>().getMMI();
7878
const Module *M = MMI.getModule();
7979
Context = &M->getContext();
8080
const NamedMDNode *DbgCu = M->getNamedMetadata("llvm.dbg.cu");

0 commit comments

Comments
 (0)