Author: Kazu Hirata
Date: 2025-10-15T06:54:46-07:00
New Revision: 251ae559be00ed0401f3ba3d6e07769c3f57060d

URL: 
https://github.com/llvm/llvm-project/commit/251ae559be00ed0401f3ba3d6e07769c3f57060d
DIFF: 
https://github.com/llvm/llvm-project/commit/251ae559be00ed0401f3ba3d6e07769c3f57060d.diff

LOG: [ByteCode] Remove a redundant call to std::unique_ptr<T>::get (NFC) 
(#163512)

Added: 
    

Modified: 
    clang/lib/AST/ByteCode/InterpState.h

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/ByteCode/InterpState.h 
b/clang/lib/AST/ByteCode/InterpState.h
index a13244bf383ae..e2e4d5c985f93 100644
--- a/clang/lib/AST/ByteCode/InterpState.h
+++ b/clang/lib/AST/ByteCode/InterpState.h
@@ -114,7 +114,7 @@ class InterpState final : public State, public SourceMapper 
{
       Alloc = std::make_unique<DynamicAllocator>();
     }
 
-    return *Alloc.get();
+    return *Alloc;
   }
 
   /// Diagnose any dynamic allocations that haven't been freed yet.


        
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to