[llvm] [AsmParser] Remove a redundant call to std::unique_ptr<T>::get (NFC) (PR #163511)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 14 23:38:08 PDT 2025


https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/163511

None

>From 04af2e2a0416431fe6ae5086df53e5afc371104a Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Sun, 12 Oct 2025 17:12:21 -0700
Subject: [PATCH] [AsmParser] Remove a redundant call to
 std::unique_ptr<T>::get (NFC)

---
 llvm/lib/AsmParser/LLParser.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp
index 380b19296a3c4..67e787eba6c87 100644
--- a/llvm/lib/AsmParser/LLParser.cpp
+++ b/llvm/lib/AsmParser/LLParser.cpp
@@ -1259,7 +1259,7 @@ bool LLParser::parseAliasOrIFunc(const std::string &Name, unsigned NameID,
       if (parseToken(lltok::StringConstant, "expected partition string"))
         return true;
     } else if (!IsAlias && Lex.getKind() == lltok::MetadataVar) {
-      if (parseGlobalObjectMetadataAttachment(*GI.get()))
+      if (parseGlobalObjectMetadataAttachment(*GI))
         return true;
     } else {
       return tokError("unknown alias or ifunc property!");



More information about the llvm-commits mailing list