[all-commits] [llvm/llvm-project] df2513: [clang][Interp] Fix three-way comparison detection
Timm Baeder via All-commits
all-commits at lists.llvm.org
Fri Feb 9 01:12:51 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: df2513c80bbd444ce97d28961bd5c20ffd7d3c44
https://github.com/llvm/llvm-project/commit/df2513c80bbd444ce97d28961bd5c20ffd7d3c44
Author: Timm Bäder <tbaeder at redhat.com>
Date: 2024-02-09 (Fri, 09 Feb 2024)
Changed paths:
M clang/lib/AST/Interp/ByteCodeExprGen.cpp
M clang/test/SemaCXX/conditional-expr.cpp
Log Message:
-----------
[clang][Interp] Fix three-way comparison detection
Instead of using !T && CPlusPlus, just check the BinaryOperator's
opcode. Turns out we also hit this code path for some assignments
of structs in C++.
More information about the All-commits
mailing list