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 99ff5d5 commit 58160e7Copy full SHA for 58160e7
clang/lib/AST/Interp/Descriptor.cpp
@@ -355,11 +355,11 @@ Descriptor::Descriptor(const DeclTy &D)
355
}
356
357
QualType Descriptor::getType() const {
358
- if (auto *E = asExpr())
+ if (const auto *E = asExpr())
359
return E->getType();
360
- if (auto *D = asValueDecl())
+ if (const auto *D = asValueDecl())
361
return D->getType();
362
- if (auto *T = dyn_cast<TypeDecl>(asDecl()))
+ if (const auto *T = dyn_cast<TypeDecl>(asDecl()))
363
return QualType(T->getTypeForDecl(), 0);
364
llvm_unreachable("Invalid descriptor type");
365
0 commit comments