aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Target/X86/X86TargetAsmInfo.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/Target/X86/X86TargetAsmInfo.cpp b/lib/Target/X86/X86TargetAsmInfo.cpp
index 6e95e89e8e..4a0c1e78c6 100644
--- a/lib/Target/X86/X86TargetAsmInfo.cpp
+++ b/lib/Target/X86/X86TargetAsmInfo.cpp
@@ -188,14 +188,8 @@ bool X86TargetAsmInfo::LowerToBSwap(CallInst *CI) const {
Function *Int = M->getOrInsertFunction(IntName, Ty, Ty, (Type*)0);
Value *Op = CI->getOperand(1);
- if (CI->getOperand(1)->getType() != Ty)
- Op = new BitCastInst(Op, Ty, Op->getName(), CI);
-
Op = new CallInst(Int, Op, CI->getName(), CI);
- if (Op->getType() != CI->getType())
- Op = new BitCastInst(Op, CI->getType(), Op->getName(), CI);
-
CI->replaceAllUsesWith(Op);
CI->eraseFromParent();
return true;