This makes it consistent with memcmp and __builtin_bcmp.
Also see the discussion in https://reviews.llvm.org/D56593.
Paths
| Differential D58120
[Builtins] Treat `bcmp` as a builtin. ClosedPublic Authored by courbet on Feb 12 2019, 7:23 AM.
Details Summary This makes it consistent with memcmp and __builtin_bcmp. Also see the discussion in https://reviews.llvm.org/D56593.
Diff Detail
Event TimelineComment Actions This looks essentially fine, but I'd like to see some basic test coverage for the changes to warnings and constant evaluation. This revision is now accepted and ready to land.Feb 13 2019, 11:09 AM Closed by commit rC354023: [Builtins] Treat `bcmp` as a builtin. (authored by courbet). · Explain WhyFeb 14 2019, 4:00 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 186463 include/clang/Basic/Builtins.def
lib/AST/Decl.cpp
lib/AST/ExprConstant.cpp
lib/Sema/SemaChecking.cpp
|