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
diff --git a/AST/StmtIterator.cpp b/AST/StmtIterator.cpp
index 961ca50..bcf495a 100644
--- a/AST/StmtIterator.cpp
+++ b/AST/StmtIterator.cpp
@@ -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);
}
}