mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Provide a getOpcode() method on CmpInst to ensure the opcode is returned
as the right type. Use this to shorten some code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32300 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2252,8 +2252,7 @@ BinaryOperator *BinaryOperator::clone() const {
|
||||
}
|
||||
|
||||
CmpInst* CmpInst::clone() const {
|
||||
return create(Instruction::OtherOps(getOpcode()), getPredicate(),
|
||||
Ops[0], Ops[1]);
|
||||
return create(getOpcode(), getPredicate(), Ops[0], Ops[1]);
|
||||
}
|
||||
|
||||
MallocInst *MallocInst::clone() const { return new MallocInst(*this); }
|
||||
|
||||
Reference in New Issue
Block a user