Fix build error.
authorEric Christopher <echristo@apple.com>
Fri, 10 Sep 2010 00:35:09 +0000 (00:35 +0000)
committerEric Christopher <echristo@apple.com>
Fri, 10 Sep 2010 00:35:09 +0000 (00:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113566 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMFastISel.cpp

index 017c0a51ea8c40a417ed089a743c5b0b4938a8f8..33b84e7474eac7af1b6367f535af3047e6a0ece4 100644 (file)
@@ -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));