[all-commits] [llvm/llvm-project] f90025: [llvm] Compare std::optional<T> to values directly...
Kazu Hirata via All-commits
all-commits at lists.llvm.org
Sat Jun 28 13:04:38 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f90025ebd930a4719f3d7ac61d802ce948f9f433
https://github.com/llvm/llvm-project/commit/f90025ebd930a4719f3d7ac61d802ce948f9f433
Author: Kazu Hirata <kazu at google.com>
Date: 2025-06-28 (Sat, 28 Jun 2025)
Changed paths:
M llvm/lib/TargetParser/AArch64TargetParser.cpp
M llvm/unittests/Support/RISCVAttributeParserTest.cpp
Log Message:
-----------
[llvm] Compare std::optional<T> to values directly (NFC) (#146222)
This patch transforms:
X && *X == Y
to:
X == Y
where X is of std::optional<T>, and Y is of T or similar.
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