Replace getValueType().getSimpleVT() with getSimpleValueType(). Also remove one weird...
[oota-llvm.git] / lib / Target / X86 / X86FastISel.cpp
index 5bc34201aa4ea361ca4267efec8b507912096abb..8e942c80e8a0d40c9d87985439c64783e9bd5686 100644 (file)
@@ -1026,7 +1026,7 @@ bool X86FastISel::X86SelectZExt(const Instruction *I) {
     return false;
 
   // Handle zero-extension from i1 to i8, which is common.
-  MVT SrcVT = TLI.getValueType(I->getOperand(0)->getType()).getSimpleVT();
+  MVT SrcVT = TLI.getSimpleValueType(I->getOperand(0)->getType());
   if (SrcVT.SimpleTy == MVT::i1) {
     // Set the high bits to zero.
     ResultReg = FastEmitZExtFromI1(MVT::i8, ResultReg, /*TODO: Kill=*/false);