summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitbdf94879dfbf32446a8144783b6c2643e83ea8d0 (patch)
treeb7f804b5241cf24cedc0982da6f668f64c4484e8 /llvm/lib/Target/X86/X86FloatingPoint.cpp
parent50e0b81ea9f57c1451343e9b1caeae5440c75217 (diff)
downloadbcm5719-llvm-bdf94879dfbf32446a8144783b6c2643e83ea8d0.tar.gz
bcm5719-llvm-bdf94879dfbf32446a8144783b6c2643e83ea8d0.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. llvm-svn: 151432
Diffstat (limited to 'llvm/lib/Target/X86/X86FloatingPoint.cpp')
-rw-r--r--llvm/lib/Target/X86/X86FloatingPoint.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86FloatingPoint.cpp b/llvm/lib/Target/X86/X86FloatingPoint.cpp
index 5c003885419..32de194725c 100644
--- a/llvm/lib/Target/X86/X86FloatingPoint.cpp
+++ b/llvm/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() &&
OpenPOWER on IntegriCloud