[cfe-commits] r170992 - /cfe/trunk/lib/Sema/SemaDecl.cpp
Nico Weber
nicolasweber at gmx.de
Sat Dec 22 16:40:47 PST 2012
Author: nico
Date: Sat Dec 22 18:40:46 2012
New Revision: 170992
URL: http://llvm.org/viewvc/llvm-project?rev=170992&view=rev
Log:
Move a declaration closer to its use. No functionality change.
Modified:
cfe/trunk/lib/Sema/SemaDecl.cpp
Modified: cfe/trunk/lib/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=170992&r1=170991&r2=170992&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Sat Dec 22 18:40:46 2012
@@ -3701,8 +3701,6 @@
if (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef)
return 0;
- NamedDecl *New;
-
TypeSourceInfo *TInfo = GetTypeForDeclarator(D, S);
QualType R = TInfo->getType();
@@ -3787,6 +3785,8 @@
D.getDeclSpec().getStorageClassSpec() != DeclSpec::SCS_typedef)
Previous.clear();
+ NamedDecl *New;
+
bool AddToScope = true;
if (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) {
if (TemplateParamLists.size()) {
More information about the cfe-commits
mailing list