[clang] [ByteCode] Remove a redundant call to std::unique_ptr<T>::get (NFC) (PR #163512)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 14 23:39:00 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Kazu Hirata (kazutakahirata)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/163512.diff
1 Files Affected:
- (modified) clang/lib/AST/ByteCode/InterpState.h (+1-1)
``````````diff
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.
``````````
</details>
https://github.com/llvm/llvm-project/pull/163512
More information about the cfe-commits
mailing list