[all-commits] [llvm/llvm-project] 17ef0f: [clang][OpenCL] Only evaluate initializer once to ...
Timm Baeder via All-commits
all-commits at lists.llvm.org
Mon May 26 23:12:40 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 17ef0fe59437f107e8f1cf7edb2fe109de4e332f
https://github.com/llvm/llvm-project/commit/17ef0fe59437f107e8f1cf7edb2fe109de4e332f
Author: Timm Baeder <tbaeder at redhat.com>
Date: 2025-05-27 (Tue, 27 May 2025)
Changed paths:
M clang/lib/Sema/SemaInit.cpp
Log Message:
-----------
[clang][OpenCL] Only evaluate initializer once to check for zero init (#141474)
Both Expr::isIntegerConstantExpr() and Expr::EvaluateKnownConstInt()
evaluate the expression. Just do it once and check the integer result.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list