Delete the allocated vector.
[oota-llvm.git] / lib / Target / X86 / X86FastISel.cpp
index 75f02177bf9591849bbdd55e45cf1afc28e5a31c..b938539a7f45243778b7c06ff000709cb8895a63 100644 (file)
@@ -711,7 +711,7 @@ bool X86FastISel::X86SelectRet(const Instruction *I) {
       return false;
     // TODO: For now, don't try to handle cases where getLocInfo()
     // says Full but the types don't match.
-    if (VA.getValVT() != TLI.getValueType(RV->getType()))
+    if (TLI.getValueType(RV->getType()) != VA.getValVT())
       return false;
 
     // The calling-convention tables for x87 returns don't tell