Skip to content

Commit 38ca73d

Browse files
authored
[clang][bytecode] Give typeinfo APValues an LValuePath (llvm#135948)
That's what the current interpreter does as well.
1 parent cf2399a commit 38ca73d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/AST/ByteCode/Pointer.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ APValue Pointer::toAPValue(const ASTContext &ASTCtx) const {
167167
return APValue(
168168
APValue::LValueBase::getTypeInfo(
169169
TypeInfo, QualType(PointeeStorage.Typeid.TypeInfoType, 0)),
170-
CharUnits::Zero(), APValue::NoLValuePath{});
170+
CharUnits::Zero(), {},
171+
/*OnePastTheEnd=*/false, /*IsNull=*/false);
171172
}
172173

173174
// Build the lvalue base from the block.

0 commit comments

Comments
 (0)