From 00a1ef57b6e49b46b69d694aa3e2e95edc291031 Mon Sep 17 00:00:00 2001 From: Hartmut Kaiser Date: Thu, 25 Oct 2007 22:59:17 +0000 Subject: [PATCH] Disambiguated variable name to comply with VC++'s archaic variable scoping rules. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43371 91177308-0d34-0410-b5e6-96231b3b80d8 --- AST/StmtIterator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AST/StmtIterator.cpp b/AST/StmtIterator.cpp index 961ca50f24..bcf495a9ae 100644 --- a/AST/StmtIterator.cpp +++ b/AST/StmtIterator.cpp @@ -73,7 +73,7 @@ Stmt*& StmtIteratorBase::GetDeclExpr() const { if (VarDecl* D = dyn_cast(Ptr.D)) return reinterpret_cast(D->Init); else { - EnumConstantDecl* D = cast(Ptr.D); - return reinterpret_cast(D->Init); + EnumConstantDecl* Decl = cast(Ptr.D); + return reinterpret_cast(Decl->Init); } } -- 2.40.0