summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 1a0a58dd0fe..ba1822cfc43 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/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.
OpenPOWER on IntegriCloud