[clang] [clang][byte] Add callback mechanism to handle constexpr for unary integer ops (PR #160280)
Timm Baeder via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 23 04:50:05 PDT 2025
================
@@ -2551,6 +2525,23 @@ static bool interp__builtin_is_within_lifetime(InterpState &S, CodePtr OpPC,
return true;
}
+static bool interp__builtin_elementwise_int_unaryop(
+ InterpState &S, CodePtr OpPC, const CallExpr *Call,
+ llvm::function_ref<APInt(const APSInt &)> Fn) {
+ assert(Call->getType()->isIntegerType() && Call->getNumArgs() == 1);
----------------
tbaederr wrote:
This should be two separate asserts so we know what the problem is if it fails
https://github.com/llvm/llvm-project/pull/160280
More information about the cfe-commits
mailing list