================
@@ -2886,9 +2904,11 @@ void PPCAIXAsmPrinter::emitFunctionDescriptor() {
void PPCAIXAsmPrinter::emitFunctionEntryLabel() {
// For functions without user defined section, it's not necessary to emit the
// label when we have individual function in its own csect.
- if (!TM.getFunctionSections() || MF->getFunction().hasSection())
+ if (!TM.getFunctionSections() || (MF && MF->getFunction().hasSection()))
PPCAsmPrinter::emitFunctionEntryLabel();
+ if (!MF)
----------------
mandlebug wrote:
Add comment explaining only ifunc will not have a MF.
https://github.com/llvm/llvm-project/pull/153049
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits