[clang] [clang][bytecode] Fix AccessKinds in placement new CheckStore() call (PR #141123)

via cfe-commits cfe-commits at lists.llvm.org
Thu May 22 12:05:37 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Timm Baeder (tbaederr)

<details>
<summary>Changes</summary>

CheckStore is for assignments, but we're constructing something here, so pass AK_Construct instead. We already diagnosed the test case, but as an assignment.

---
Full diff: https://github.com/llvm/llvm-project/pull/141123.diff


2 Files Affected:

- (modified) clang/lib/AST/ByteCode/Interp.cpp (+19-1) 
- (modified) clang/test/AST/ByteCode/placement-new.cpp (+13-2) 


``````````diff
The server is unavailable at this time. Please wait a few minutes before you try again.
``````````

</details>


https://github.com/llvm/llvm-project/pull/141123


More information about the cfe-commits mailing list