aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/X86FloatingPoint.cpp
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2012-02-25 03:37:25 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2012-02-25 03:37:25 +0000
commit9a68fdc7f8211a9330537d44e3406d79fc5562af (patch)
tree7399a309b349680e8390519aac2780cbfa085e30 /lib/Target/X86/X86FloatingPoint.cpp
parentdfba3ad88276b0aad3d515320bb4a50480c364d9 (diff)
downloadexternal_llvm-9a68fdc7f8211a9330537d44e3406d79fc5562af.tar.gz
external_llvm-9a68fdc7f8211a9330537d44e3406d79fc5562af.tar.bz2
external_llvm-9a68fdc7f8211a9330537d44e3406d79fc5562af.zip
Target/X86: Fix assertion failures and warnings caused by r151382 _ftol2 lowering for i386-*-win32 targets. Patch by Joe Groff.
[Joe Groff] Hi everyone. My previous patch applied as r151382 had a few problems: Clang raised a warning, and X86 LowerOperation would assert out for fptoui f64 to i32 because it improperly lowered to an illegal BUILD_PAIR. Here's a patch that addresses these issues. Let me know if any other changes are necessary. Thanks. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151432 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86FloatingPoint.cpp')
-rw-r--r--lib/Target/X86/X86FloatingPoint.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/Target/X86/X86FloatingPoint.cpp b/lib/Target/X86/X86FloatingPoint.cpp
index 5c00388541..32de194725 100644
--- a/lib/Target/X86/X86FloatingPoint.cpp
+++ b/lib/Target/X86/X86FloatingPoint.cpp
@@ -1646,8 +1646,6 @@ void FPS::handleSpecialFP(MachineBasicBlock::iterator &I) {
case X86::WIN_FTOL_32:
case X86::WIN_FTOL_64: {
- MachineBasicBlock::iterator InsertPt = MI;
-
// Push the operand into ST0.
MachineOperand &Op = MI->getOperand(0);
assert(Op.isUse() && Op.isReg() &&