[llvm] d097c2b - [IR][NFC] Add parentheses around logical AND (#208512)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 13 02:19:57 PDT 2026
Author: disservin
Date: 2026-07-13T11:19:53+02:00
New Revision: d097c2b764460284b186636b547573d309eaba8d
URL: https://github.com/llvm/llvm-project/commit/d097c2b764460284b186636b547573d309eaba8d
DIFF: https://github.com/llvm/llvm-project/commit/d097c2b764460284b186636b547573d309eaba8d.diff
LOG: [IR][NFC] Add parentheses around logical AND (#208512)
Fixes a `-Wparentheses` warning about unclear priority of operators.
Added:
Modified:
llvm/lib/IR/Verifier.cpp
Removed:
################################################################################
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp
index 0661a8316d740..dd5140c61dc67 100644
--- a/llvm/lib/IR/Verifier.cpp
+++ b/llvm/lib/IR/Verifier.cpp
@@ -5942,8 +5942,8 @@ void Verifier::visitIntrinsicCall(Intrinsic::ID ID, CallBase &Call) {
"bits",
Call);
Check(OBU.Inputs.size() < 3 ||
- GetTypeAt(2)->isIntegerTy() &&
- GetTypeAt(2)->getIntegerBitWidth() <= 64,
+ (GetTypeAt(2)->isIntegerTy() &&
+ GetTypeAt(2)->getIntegerBitWidth() <= 64),
"third argument should be an integer with a maximum width of 64 "
"bits if present",
Call);
More information about the llvm-commits
mailing list