summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit70db5e7cb20e180b9c9973f56bc174778d16863b (patch)
tree8cfc4957ed7a5376affa7e2b66c0675a9f8addae /llvm/lib/VMCore/Instruction.cpp
parent5a2ce5fbf7b9f8b483ccb832636a5706108e1379 (diff)
downloadbcm5719-llvm-70db5e7cb20e180b9c9973f56bc174778d16863b.tar.gz
bcm5719-llvm-70db5e7cb20e180b9c9973f56bc174778d16863b.zip
There is no need for isAssociative to take the type as an argument anymore.
llvm-svn: 122242
Diffstat (limited to 'llvm/lib/VMCore/Instruction.cpp')
-rw-r--r--llvm/lib/VMCore/Instruction.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}
OpenPOWER on IntegriCloud