[llvm] b6414b5 - Xtensa: Fix clang lifetime warning
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 5 01:02:42 PDT 2025
Author: Fangrui Song
Date: 2025-06-05T01:02:38-07:00
New Revision: b6414b570f051d9e4d1334ec9aaa345cbffabaf1
URL: https://github.com/llvm/llvm-project/commit/b6414b570f051d9e4d1334ec9aaa345cbffabaf1
DIFF: https://github.com/llvm/llvm-project/commit/b6414b570f051d9e4d1334ec9aaa345cbffabaf1.diff
LOG: Xtensa: Fix clang lifetime warning
Added:
Modified:
llvm/lib/Target/Xtensa/XtensaISelDAGToDAG.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/Xtensa/XtensaISelDAGToDAG.cpp b/llvm/lib/Target/Xtensa/XtensaISelDAGToDAG.cpp
index 06cccd4831bfc..959553de99392 100644
--- a/llvm/lib/Target/Xtensa/XtensaISelDAGToDAG.cpp
+++ b/llvm/lib/Target/Xtensa/XtensaISelDAGToDAG.cpp
@@ -59,10 +59,9 @@ class XtensaDAGToDAGISel : public SelectionDAGISel {
}
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 ||
More information about the llvm-commits
mailing list