[clang] [clang][bytecode] Give typeinfo APValues an LValuePath (PR #135948)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 16 03:50:18 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Timm Baeder (tbaederr)
<details>
<summary>Changes</summary>
That's what the current interpreter does as well.
---
Full diff: https://github.com/llvm/llvm-project/pull/135948.diff
1 Files Affected:
- (modified) clang/lib/AST/ByteCode/Pointer.cpp (+2-1)
``````````diff
diff --git a/clang/lib/AST/ByteCode/Pointer.cpp b/clang/lib/AST/ByteCode/Pointer.cpp
index c09d3224b1f36..fcb33efd73f2f 100644
--- a/clang/lib/AST/ByteCode/Pointer.cpp
+++ b/clang/lib/AST/ByteCode/Pointer.cpp
@@ -167,7 +167,8 @@ APValue Pointer::toAPValue(const ASTContext &ASTCtx) const {
return APValue(
APValue::LValueBase::getTypeInfo(
TypeInfo, QualType(PointeeStorage.Typeid.TypeInfoType, 0)),
- CharUnits::Zero(), APValue::NoLValuePath{});
+ CharUnits::Zero(), {},
+ /*OnePastTheEnd=*/false, /*IsNull=*/false);
}
// Build the lvalue base from the block.
``````````
</details>
https://github.com/llvm/llvm-project/pull/135948
More information about the cfe-commits
mailing list