Skip to content

Commit ea8de6e

Browse files
committed
[clang][Interp][NFC] Make two local variables const
1 parent 15b0cc1 commit ea8de6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/AST/Interp/Pointer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ APValue Pointer::toAPValue() const {
9292
// Build the lvalue base from the block.
9393
const Descriptor *Desc = getDeclDesc();
9494
APValue::LValueBase Base;
95-
if (auto *VD = Desc->asValueDecl())
95+
if (const auto *VD = Desc->asValueDecl())
9696
Base = VD;
97-
else if (auto *E = Desc->asExpr())
97+
else if (const auto *E = Desc->asExpr())
9898
Base = E;
9999
else
100100
llvm_unreachable("Invalid allocation type");

0 commit comments

Comments
 (0)