]> granicus.if.org Git - clang/commitdiff
Disambiguated variable name to comply with VC++'s archaic variable scoping rules.
authorHartmut Kaiser <hartmut.kaiser@gmail.com>
Thu, 25 Oct 2007 22:59:17 +0000 (22:59 +0000)
committerHartmut Kaiser <hartmut.kaiser@gmail.com>
Thu, 25 Oct 2007 22:59:17 +0000 (22:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43371 91177308-0d34-0410-b5e6-96231b3b80d8

AST/StmtIterator.cpp

index 961ca50f2445726f5e8ca33231ed39012997934d..bcf495a9ae0856eacf06b6c601b93a430a849790 100644 (file)
@@ -73,7 +73,7 @@ Stmt*& StmtIteratorBase::GetDeclExpr() const {
   if (VarDecl* D = dyn_cast<VarDecl>(Ptr.D))
     return reinterpret_cast<Stmt*&>(D->Init);
   else {
-    EnumConstantDecl* D = cast<EnumConstantDecl>(Ptr.D);
-    return reinterpret_cast<Stmt*&>(D->Init);
+    EnumConstantDecl* Decl = cast<EnumConstantDecl>(Ptr.D);
+    return reinterpret_cast<Stmt*&>(Decl->Init);
   }
 }