[PATCH] D131979: [clang][UBSan] Fix __builtin_assume_aligned crash

Wang Yihan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 16 10:40:24 PDT 2022


yihanaa added a comment.

In D131979#3726686 <https://reviews.llvm.org/D131979#3726686>, @erichkeane wrote:

> I think the correct answer here is instead to prohibit using this on array/string literal types in Sema instead of just ignoring the call.

Thanks for you replay @erichkeane , in clang/lib/CodeGen/CodeGenFunction.cpp:2442, Since E = CE->getSubExprAsWritten() is used, implicit cast is no longer visible in  clang::CodeGenCodeGenFunction::emitAlignmentAssumptionCheck

      


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D131979



More information about the cfe-commits mailing list