Xtensa: Fix clang lifetime warning

This commit is contained in:
Fangrui Song
2025-06-05 01:02:38 -07:00
parent 100a1d0c4c
commit b6414b570f

View File

@@ -59,10 +59,9 @@ public:
}
if (TM.isPositionIndependent()) {
DiagnosticInfoUnsupported Diag(CurDAG->getMachineFunction().getFunction(),
"PIC relocations are not supported ",
Addr.getDebugLoc());
CurDAG->getContext()->diagnose(Diag);
CurDAG->getContext()->diagnose(DiagnosticInfoUnsupported(
CurDAG->getMachineFunction().getFunction(),
"PIC relocations are not supported", Addr.getDebugLoc()));
}
if ((Addr.getOpcode() == ISD::TargetExternalSymbol ||