aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/Instructions.cpp
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2008-05-13 22:51:52 +0000
committerGabor Greif <ggreif@gmail.com>2008-05-13 22:51:52 +0000
commitb1da2ae5b10f6d1f19392718e2c35cbc71873b61 (patch)
tree552de423a4b79ff2cf57b7c68f5e2db81fb562d2 /lib/VMCore/Instructions.cpp
parent48eb092e05abbb5f842a05eb822fa7d77b304fb4 (diff)
downloadexternal_llvm-b1da2ae5b10f6d1f19392718e2c35cbc71873b61.tar.gz
external_llvm-b1da2ae5b10f6d1f19392718e2c35cbc71873b61.tar.bz2
external_llvm-b1da2ae5b10f6d1f19392718e2c35cbc71873b61.zip
Merge of r51073-51074 from use-diet branch.
Do not rely on std::swap<Use>, provide a (faster) member function instead. This change is primarily necessitated by MSVC++'s incompatibility with declaring std::swap<Use> to be a friend of Use. Also contains some minor tweaks to Use inline functions, to undo pointless changes that sneaked in with the last merge. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51078 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Instructions.cpp')
-rw-r--r--lib/VMCore/Instructions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Instructions.cpp b/lib/VMCore/Instructions.cpp
index cea496d1ca..ff56560613 100644
--- a/lib/VMCore/Instructions.cpp
+++ b/lib/VMCore/Instructions.cpp
@@ -1563,7 +1563,7 @@ const Value *BinaryOperator::getNotArgument(const Value *BinOp) {
bool BinaryOperator::swapOperands() {
if (!isCommutative())
return true; // Can't commute operands
- std::swap(Op<0>(), Op<1>());
+ Op<0>().swap(Op<1>());
return false;
}