diff options
author | Craig Topper <craig.topper@gmail.com> | 2013-08-15 02:33:50 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2013-08-15 02:33:50 +0000 |
commit | 5a0910b34959fa8e0b5a49908f51a15bc3a48069 (patch) | |
tree | d946a6df74da234c24e33b16a12b4ebcf913d408 /lib/Target/X86/X86FastISel.cpp | |
parent | e742d687369f79702894b6cf302e1f222c5d7432 (diff) | |
download | external_llvm-5a0910b34959fa8e0b5a49908f51a15bc3a48069.zip external_llvm-5a0910b34959fa8e0b5a49908f51a15bc3a48069.tar.gz external_llvm-5a0910b34959fa8e0b5a49908f51a15bc3a48069.tar.bz2 |
Replace getValueType().getSimpleVT() with getSimpleValueType(). Also remove one weird cast from MVT->EVT just to call getSimpleVT().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188441 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86FastISel.cpp')
-rw-r--r-- | lib/Target/X86/X86FastISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/X86FastISel.cpp b/lib/Target/X86/X86FastISel.cpp index 5bc3420..8e942c8 100644 --- a/lib/Target/X86/X86FastISel.cpp +++ b/lib/Target/X86/X86FastISel.cpp @@ -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); |