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 15b0cc1 commit ea8de6eCopy full SHA for ea8de6e
clang/lib/AST/Interp/Pointer.cpp
@@ -92,9 +92,9 @@ APValue Pointer::toAPValue() const {
92
// Build the lvalue base from the block.
93
const Descriptor *Desc = getDeclDesc();
94
APValue::LValueBase Base;
95
- if (auto *VD = Desc->asValueDecl())
+ if (const auto *VD = Desc->asValueDecl())
96
Base = VD;
97
- else if (auto *E = Desc->asExpr())
+ else if (const auto *E = Desc->asExpr())
98
Base = E;
99
else
100
llvm_unreachable("Invalid allocation type");
0 commit comments