summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Target/ARM/ARMFastISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp
index 017c0a51ea..33b84e7474 100644
--- a/lib/Target/ARM/ARMFastISel.cpp
+++ b/lib/Target/ARM/ARMFastISel.cpp
@@ -826,7 +826,7 @@ bool ARMFastISel::ARMSelectFPToSI(const Instruction *I) {
EVT DstVT;
const Type *RetTy = I->getType();
- if (!isTypeLegal(RetTy, VT))
+ if (!isTypeLegal(RetTy, DstVT))
return false;
unsigned Op = getRegForValue(I->getOperand(0));