[PATCH] D108360: [clang][NFC] Remove dead code

Andy Wingo via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 19 03:06:09 PDT 2021


wingo created this revision.
wingo requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D108360

Files:
  clang/lib/Sema/SemaType.cpp


Index: clang/lib/Sema/SemaType.cpp
===================================================================
--- clang/lib/Sema/SemaType.cpp
+++ clang/lib/Sema/SemaType.cpp
@@ -8303,10 +8303,6 @@
           attr.getMacroExpansionLoc());
     }
   }
-
-  if (!state.getSema().getLangOpts().OpenCL ||
-      type.getAddressSpace() != LangAS::Default)
-    return;
 }
 
 void Sema::completeExprArrayBound(Expr *E) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108360.367440.patch
Type: text/x-patch
Size: 407 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210819/9503b128/attachment.bin>


More information about the cfe-commits mailing list