[llvm] 778c2a5 - [IR] Remove an unnecessary cast (NFC) (#147453)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 7 23:40:33 PDT 2025
Author: Kazu Hirata
Date: 2025-07-07T23:40:29-07:00
New Revision: 778c2a59533c7a88fe13775593043d16b1eb0d60
URL: https://github.com/llvm/llvm-project/commit/778c2a59533c7a88fe13775593043d16b1eb0d60
DIFF: https://github.com/llvm/llvm-project/commit/778c2a59533c7a88fe13775593043d16b1eb0d60.diff
LOG: [IR] Remove an unnecessary cast (NFC) (#147453)
predicate is already of Predicate.
Added:
Modified:
llvm/lib/IR/Instructions.cpp
Removed:
################################################################################
diff --git a/llvm/lib/IR/Instructions.cpp b/llvm/lib/IR/Instructions.cpp
index 3cfee89a1fdf5..9fe79366f9b2f 100644
--- a/llvm/lib/IR/Instructions.cpp
+++ b/llvm/lib/IR/Instructions.cpp
@@ -3488,7 +3488,7 @@ CmpInst::CmpInst(Type *ty, OtherOps op, Predicate predicate, Value *LHS,
: Instruction(ty, op, AllocMarker, InsertBefore) {
Op<0>() = LHS;
Op<1>() = RHS;
- setPredicate((Predicate)predicate);
+ setPredicate(predicate);
setName(Name);
if (FlagsSource)
copyIRFlags(FlagsSource);
More information about the llvm-commits
mailing list