[PATCH] D52875: Fix definitions of __builtin_(add|sub|mul)_overflow
Marco Antognini via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 4 06:42:21 PDT 2018
mantognini added a comment.
In https://reviews.llvm.org/D52875#1255146, @erichkeane wrote:
> Can you write tests for this please? Particularly validate the results in a constexpr context.
There are already some tests for those builtins (not sure about constexpr context). They already tests that the builtins can be used as branching condition. However, the current implementation of `Sema::BuildResolvedCallExpr` assumes that by default builtins return `bool`. In https://reviews.llvm.org/D52879, I improve that and not having the above fix makes the existing tests fail, so I believe we don't need to add more tests.
> Additionally, these all have the 't' flag, which means that these signatures are meaningless, right? What are you seeing where this works incorrectly?
I reckon the signature does't include the return type, hence it isn't meaningless even with the `t` flag.
Repository:
rC Clang
https://reviews.llvm.org/D52875
More information about the cfe-commits
mailing list