aboutsummaryrefslogtreecommitdiff
path: root/lib/VMCore/iOperators.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-06-27 18:38:48 +0000
committerChris Lattner <sabre@nondot.org>2004-06-27 18:38:48 +0000
commit40515dba1bcbde16ee79657c6053232bc4562554 (patch)
tree36b16feca0451725bed0716db854c7bacf5efe3f /lib/VMCore/iOperators.cpp
parent7da38ec915010576685200089c75a2135bd3fa97 (diff)
Fold iType into Value::VTy
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14435 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/iOperators.cpp')
-rw-r--r--lib/VMCore/iOperators.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VMCore/iOperators.cpp b/lib/VMCore/iOperators.cpp
index afbeb9707c..c33d797391 100644
--- a/lib/VMCore/iOperators.cpp
+++ b/lib/VMCore/iOperators.cpp
@@ -173,7 +173,8 @@ bool BinaryOperator::swapOperands() {
if (isCommutative())
; // If the instruction is commutative, it is safe to swap the operands
else if (SetCondInst *SCI = dyn_cast<SetCondInst>(this))
- iType = SCI->getSwappedCondition();
+ /// FIXME: SetCC instructions shouldn't all have different opcodes.
+ setOpcode(SCI->getSwappedCondition());
else
return true; // Can't commute operands