We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db63c57 commit a23f737Copy full SHA for a23f737
clang/lib/AST/ByteCode/Pointer.cpp
@@ -278,10 +278,10 @@ APValue Pointer::toAPValue(const ASTContext &ASTCtx) const {
278
Ptr = Ptr.getArray();
279
} else {
280
const Descriptor *Desc = Ptr.getFieldDesc();
281
- bool IsVirtual = false;
282
283
// Create a path entry for the field.
284
if (const auto *BaseOrMember = Desc->asDecl()) {
+ bool IsVirtual = false;
285
if (const auto *FD = dyn_cast<FieldDecl>(BaseOrMember)) {
286
Ptr = Ptr.getBase();
287
Offset += getFieldOffset(FD);
0 commit comments