[clang] 251ae55 - [ByteCode] Remove a redundant call to std::unique_ptr<T>::get (NFC) (#163512)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 15 06:54:50 PDT 2025
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.
More information about the cfe-commits
mailing list