r192211 - Remove transient code I did not mean to check in.
Ted Kremenek
kremenek at apple.com
Tue Oct 8 11:04:56 PDT 2013
Author: kremenek
Date: Tue Oct 8 13:04:56 2013
New Revision: 192211
URL: http://llvm.org/viewvc/llvm-project?rev=192211&view=rev
Log:
Remove transient code I did not mean to check in.
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=192211&r1=192210&r2=192211&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Tue Oct 8 13:04:56 2013
@@ -5433,18 +5433,6 @@ void Sema::CheckShadow(Scope *S, VarDecl
if (D->hasGlobalStorage())
return;
- // Don't diagnose variables whose declarations and scope are expanded
- // from the same macro instantiation.
- SourceLocation DLoc = D->getLocation();
- if (DLoc.isMacroID()) {
-
-
-
-
- }
-
-
-
DeclContext *NewDC = D->getDeclContext();
// Only diagnose if we're shadowing an unambiguous field or variable.
More information about the cfe-commits
mailing list