diff options
author | Gabor Greif <ggreif@gmail.com> | 2008-05-13 22:51:52 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2008-05-13 22:51:52 +0000 |
commit | 5ef7404dc732caba5b5376820f41943abb8f2fdf (patch) | |
tree | ade1653c2ba91ebd8f5eeb806b6470557c69a4b3 /llvm/lib/VMCore/Instructions.cpp | |
parent | 29fafcccd382b6a86c1e866bc6f1d4ed3c2bc9b7 (diff) | |
download | bcm5719-llvm-5ef7404dc732caba5b5376820f41943abb8f2fdf.tar.gz bcm5719-llvm-5ef7404dc732caba5b5376820f41943abb8f2fdf.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.
llvm-svn: 51078
Diffstat (limited to 'llvm/lib/VMCore/Instructions.cpp')
-rw-r--r-- | llvm/lib/VMCore/Instructions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Instructions.cpp b/llvm/lib/VMCore/Instructions.cpp index cea496d1ca7..ff565606138 100644 --- a/llvm/lib/VMCore/Instructions.cpp +++ b/llvm/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; } |