Skip to content

Commit 778c2a5

Browse files
[IR] Remove an unnecessary cast (NFC) (llvm#147453)
predicate is already of Predicate.
1 parent 8bef9d1 commit 778c2a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/IR/Instructions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3488,7 +3488,7 @@ CmpInst::CmpInst(Type *ty, OtherOps op, Predicate predicate, Value *LHS,
34883488
: Instruction(ty, op, AllocMarker, InsertBefore) {
34893489
Op<0>() = LHS;
34903490
Op<1>() = RHS;
3491-
setPredicate((Predicate)predicate);
3491+
setPredicate(predicate);
34923492
setName(Name);
34933493
if (FlagsSource)
34943494
copyIRFlags(FlagsSource);

0 commit comments

Comments
 (0)