[PATCH] D149514: Check if First argument in _builtin_assume_aligned_ is of pointer type

Sergei Barannikov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 1 08:19:30 PDT 2023


barannikov88 added inline comments.


================
Comment at: clang/lib/Sema/SemaChecking.cpp:7985
       return true;
     TheCall->setArg(0, FirstArgResult.get());
   }
----------------
This looks suspicious to me, but I'm no clang expert.
Is it safe to ignore casts inserted by checkBuiltinArgument, or, in other words,
is it correct to pass an argument of incompatible type?



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

https://reviews.llvm.org/D149514



More information about the cfe-commits mailing list