[PATCH] D90367: [darwin] add support for __isPlatformVersionAtLeast check for if (@available)

Nico Weber via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 29 10:34:05 PDT 2020


thakis accepted this revision.
thakis added a comment.
This revision is now accepted and ready to land.

Thanks!



================
Comment at: clang/lib/CodeGen/CGObjC.cpp:3874
 
   if (!CGM.IsOSVersionAtLeastFn) {
     llvm::FunctionType *FTy =
----------------
Isn't the rest of the function basically dead code? Do non-darwin targets support this feature? As far as I can tell, they don't?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D90367/new/

https://reviews.llvm.org/D90367



More information about the cfe-commits mailing list