[PATCH] D156821: [CodeGen] [ubsan] Respect integer overflow handling in abs builtin
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 18 15:22:23 PDT 2023
MaskRay added inline comments.
================
Comment at: clang/lib/CodeGen/CGBuiltin.cpp:1787
+ if (!VCI->isMinSignedValue()) {
+ return EmitAbs(CGF, ArgValue, true);
+ }
----------------
MaskRay wrote:
> nit: we delete braces in this cascading case
>
> https://llvm.org/docs/CodingStandards.html#don-t-use-braces-on-simple-single-statement-bodies-of-if-else-loop-statements
Thanks. I think the coding standard omits the outer braces as well.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156821/new/
https://reviews.llvm.org/D156821
More information about the cfe-commits
mailing list