From 70db5e7cb20e180b9c9973f56bc174778d16863b Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Mon, 20 Dec 2010 13:10:23 +0000 Subject: There is no need for isAssociative to take the type as an argument anymore. llvm-svn: 122242 --- llvm/lib/VMCore/Instruction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/VMCore/Instruction.cpp') diff --git a/llvm/lib/VMCore/Instruction.cpp b/llvm/lib/VMCore/Instruction.cpp index fdddba988c3..7bb2cf167b9 100644 --- a/llvm/lib/VMCore/Instruction.cpp +++ b/llvm/lib/VMCore/Instruction.cpp @@ -348,7 +348,7 @@ bool Instruction::mayThrow() const { /// /// In LLVM, the Add, Mul, And, Or, and Xor operators are associative. /// -bool Instruction::isAssociative(unsigned Opcode, const Type *Ty) { +bool Instruction::isAssociative(unsigned Opcode) { return Opcode == And || Opcode == Or || Opcode == Xor || Opcode == Add || Opcode == Mul; } -- cgit v1.2.3