Skip to content

Commit b6414b5

Browse files
committed
Xtensa: Fix clang lifetime warning
1 parent 100a1d0 commit b6414b5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

llvm/lib/Target/Xtensa/XtensaISelDAGToDAG.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,9 @@ class XtensaDAGToDAGISel : public SelectionDAGISel {
5959
}
6060

6161
if (TM.isPositionIndependent()) {
62-
DiagnosticInfoUnsupported Diag(CurDAG->getMachineFunction().getFunction(),
63-
"PIC relocations are not supported ",
64-
Addr.getDebugLoc());
65-
CurDAG->getContext()->diagnose(Diag);
62+
CurDAG->getContext()->diagnose(DiagnosticInfoUnsupported(
63+
CurDAG->getMachineFunction().getFunction(),
64+
"PIC relocations are not supported", Addr.getDebugLoc()));
6665
}
6766

6867
if ((Addr.getOpcode() == ISD::TargetExternalSymbol ||

0 commit comments

Comments
 (0)