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 9f38912 commit ab017fbCopy full SHA for ab017fb
llvm/lib/Target/SPIRV/SPIRVEmitNonSemanticDI.cpp
@@ -74,7 +74,7 @@ bool SPIRVEmitNonSemanticDI::emitGlobalDI(MachineFunction &MF) {
74
// Searching through the Module metadata to find nescessary
75
// information like DwarfVersion or SourceLanguage
76
{
77
- const MachineModuleInfo &MMI = MF.getMMI();
+ const MachineModuleInfo &MMI = getAnalysis<MachineModuleInfoWrapperPass>().getMMI();
78
const Module *M = MMI.getModule();
79
Context = &M->getContext();
80
const NamedMDNode *DbgCu = M->getNamedMetadata("llvm.dbg.cu");
0 commit comments