================
@@ -2884,6 +2901,12 @@ void PPCAIXAsmPrinter::emitFunctionDescriptor() {
 }
 
 void PPCAIXAsmPrinter::emitFunctionEntryLabel() {
+  if (!MF) { // TODO: MF is unset when processing an ifunc, handle it better.
----------------
mandlebug wrote:

Can you clean this up by changing the conditional in line 2912 to 
`!TM.getFunctionSections() || (MF && MF->getFunction().hasSection())` then 
after have an early return if MF is null?

https://github.com/llvm/llvm-project/pull/153049
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to