diff options
Diffstat (limited to 'clang/lib/AST/ByteCode/Program.cpp')
-rw-r--r-- | clang/lib/AST/ByteCode/Program.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/ByteCode/Program.cpp b/clang/lib/AST/ByteCode/Program.cpp index c83f557..fdb7b96 100644 --- a/clang/lib/AST/ByteCode/Program.cpp +++ b/clang/lib/AST/ByteCode/Program.cpp @@ -156,7 +156,7 @@ unsigned Program::getOrCreateDummy(const DeclTy &D) { if (const auto *E = dyn_cast<const Expr *>(D)) { QT = E->getType(); } else { - const ValueDecl *VD = cast<ValueDecl>(cast<const Decl *>(D)); + const auto *VD = cast<ValueDecl>(cast<const Decl *>(D)); IsWeak = VD->isWeak(); QT = VD->getType(); if (const auto *RT = QT->getAs<ReferenceType>()) |