summaryrefslogtreecommitdiff
path: root/lib/VMCore/Instruction.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2010-12-20 13:10:23 +0000
committerDuncan Sands <baldrick@free.fr>2010-12-20 13:10:23 +0000
commit0d7ce5ffa4aa853b75e1015c62e27bd9f23ef73b (patch)
treee646320838c0b7e8dafba5bc897d341220421bde /lib/VMCore/Instruction.cpp
parent8e4f4390bc3e6ed0ec72281c67950f54474f915d (diff)
downloadllvm-0d7ce5ffa4aa853b75e1015c62e27bd9f23ef73b.tar.gz
llvm-0d7ce5ffa4aa853b75e1015c62e27bd9f23ef73b.tar.bz2
llvm-0d7ce5ffa4aa853b75e1015c62e27bd9f23ef73b.tar.xz
There is no need for isAssociative to take the type as an argument anymore.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122242 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Instruction.cpp')
-rw-r--r--lib/VMCore/Instruction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Instruction.cpp b/lib/VMCore/Instruction.cpp
index fdddba988c..7bb2cf167b 100644
--- a/lib/VMCore/Instruction.cpp
+++ b/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;
}