[clang] [clang][bytecode] Give typeinfo APValues an LValuePath (PR #135948)
Timm Baeder via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 16 03:49:38 PDT 2025
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/135948
That's what the current interpreter does as well.
>From 6ce3dade0fa78ebe20e81fa9546b0917d02fb424 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timm=20B=C3=A4der?= <tbaeder at redhat.com>
Date: Wed, 16 Apr 2025 12:47:53 +0200
Subject: [PATCH] [clang][bytecode] Give typeinfo APValues an LValuePath
That's what the current interpreter does as well.
---
clang/lib/AST/ByteCode/Pointer.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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.
More information about the cfe-commits
mailing list