[clang] eb3af1e - [clang][NFC] Remove dead code

Andy Wingo via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 20 03:16:29 PDT 2021


Author: Andy Wingo
Date: 2021-09-20T11:33:34+02:00
New Revision: eb3af1e77341e82249993a5a8a50779c48e1cb61

URL: https://github.com/llvm/llvm-project/commit/eb3af1e77341e82249993a5a8a50779c48e1cb61
DIFF: https://github.com/llvm/llvm-project/commit/eb3af1e77341e82249993a5a8a50779c48e1cb61.diff

LOG: [clang][NFC] Remove dead code

Remove code that has no effect in SemaType.cpp:processTypeAttrs.

Differential Revision: https://reviews.llvm.org/D108360

Added: 
    

Modified: 
    clang/lib/Sema/SemaType.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Sema/SemaType.cpp b/clang/lib/Sema/SemaType.cpp
index df9f203ae4c6..53e41f01f83d 100644
--- a/clang/lib/Sema/SemaType.cpp
+++ b/clang/lib/Sema/SemaType.cpp
@@ -8310,10 +8310,6 @@ static void processTypeAttrs(TypeProcessingState &state, QualType &type,
           attr.getMacroExpansionLoc());
     }
   }
-
-  if (!state.getSema().getLangOpts().OpenCL ||
-      type.getAddressSpace() != LangAS::Default)
-    return;
 }
 
 void Sema::completeExprArrayBound(Expr *E) {


        


More information about the cfe-commits mailing list