Author: Kazu Hirata Date: 2025-05-22T23:52:07-07:00 New Revision: 3d028348ce0d6fa531ba7dad8fd38893019dc609
URL: https://github.com/llvm/llvm-project/commit/3d028348ce0d6fa531ba7dad8fd38893019dc609 DIFF: https://github.com/llvm/llvm-project/commit/3d028348ce0d6fa531ba7dad8fd38893019dc609.diff LOG: [CodeGen] Remove redundant calls to std::unique_ptr<T>::get (NFC) (#141191) Added: Modified: clang/lib/CodeGen/CGDebugInfo.cpp Removed: ################################################################################ diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 3d20756774708..21896c94c86b4 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -134,10 +134,9 @@ void CGDebugInfo::addInstSourceAtomMetadata(llvm::Instruction *I, // Each instruction can only be attributed to one source atom (a limitation of // the implementation). If this instruction is already part of a source atom, // pick the group in which it has highest precedence (lowest rank). - if (DL.get()->getAtomGroup() && DL.get()->getAtomRank() && - DL.get()->getAtomRank() < Rank) { - Group = DL.get()->getAtomGroup(); - Rank = DL.get()->getAtomRank(); + if (DL->getAtomGroup() && DL->getAtomRank() && DL->getAtomRank() < Rank) { + Group = DL->getAtomGroup(); + Rank = DL->getAtomRank(); } // Update the function-local watermark so we don't reuse this number for _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits