Skip to content

Commit a23f737

Browse files
authored
[clang][bytecode][NFC] Move local into closest scope (#154969)
1 parent db63c57 commit a23f737

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/AST/ByteCode/Pointer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,10 @@ APValue Pointer::toAPValue(const ASTContext &ASTCtx) const {
278278
Ptr = Ptr.getArray();
279279
} else {
280280
const Descriptor *Desc = Ptr.getFieldDesc();
281-
bool IsVirtual = false;
282281

283282
// Create a path entry for the field.
284283
if (const auto *BaseOrMember = Desc->asDecl()) {
284+
bool IsVirtual = false;
285285
if (const auto *FD = dyn_cast<FieldDecl>(BaseOrMember)) {
286286
Ptr = Ptr.getBase();
287287
Offset += getFieldOffset(FD);

0 commit comments

Comments
 (0)