From 976e2da081519d3438da6bf8e5ae7b25cc3433e4 Mon Sep 17 00:00:00 2001 From: Lauro Ramos Venancio Date: Mon, 11 Jun 2007 23:16:16 +0000 Subject: [PATCH] Fix a typo in bswap lowering. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37544 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/IntrinsicLowering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/IntrinsicLowering.cpp b/lib/CodeGen/IntrinsicLowering.cpp index e6ba069ac71..ad6feb49180 100644 --- a/lib/CodeGen/IntrinsicLowering.cpp +++ b/lib/CodeGen/IntrinsicLowering.cpp @@ -144,7 +144,7 @@ static Value *LowerBSWAP(Value *V, Instruction *IP) { "bswap.and2", IP); Tmp4 = BinaryOperator::createOr(Tmp4, Tmp3, "bswap.or1", IP); Tmp2 = BinaryOperator::createOr(Tmp2, Tmp1, "bswap.or2", IP); - V = BinaryOperator::createOr(Tmp4, Tmp3, "bswap.i32", IP); + V = BinaryOperator::createOr(Tmp4, Tmp2, "bswap.i32", IP); break; } case 64: {