From bbec341e3685168fec20b5ca4a22a88e26ca0c57 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Tue, 8 Oct 2013 18:04:56 +0000 Subject: [PATCH] Remove transient code I did not mean to check in. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192211 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/SemaDecl.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 1a0a58dd0f..ba1822cfc4 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -5433,18 +5433,6 @@ void Sema::CheckShadow(Scope *S, VarDecl *D, const LookupResult& R) { 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. -- 2.50.1