[cfe-commits] r43371 - /cfe/trunk/AST/StmtIterator.cpp
Hartmut Kaiser
hartmut.kaiser at gmail.com
Thu Oct 25 15:59:17 PDT 2007
Author: hkaiser
Date: Thu Oct 25 17:59:17 2007
New Revision: 43371
URL: http://llvm.org/viewvc/llvm-project?rev=43371&view=rev
Log:
Disambiguated variable name to comply with VC++'s archaic variable scoping rules.
Modified:
cfe/trunk/AST/StmtIterator.cpp
Modified: cfe/trunk/AST/StmtIterator.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/AST/StmtIterator.cpp?rev=43371&r1=43370&r2=43371&view=diff
==============================================================================
--- cfe/trunk/AST/StmtIterator.cpp (original)
+++ cfe/trunk/AST/StmtIterator.cpp Thu Oct 25 17:59:17 2007
@@ -73,7 +73,7 @@
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);
}
}
More information about the cfe-commits
mailing list