diff options
Diffstat (limited to 'lib/Target/X86/InstSelectSimple.cpp')
-rw-r--r-- | lib/Target/X86/InstSelectSimple.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/InstSelectSimple.cpp b/lib/Target/X86/InstSelectSimple.cpp index c6afdde1d0..59d56bc743 100644 --- a/lib/Target/X86/InstSelectSimple.cpp +++ b/lib/Target/X86/InstSelectSimple.cpp @@ -2861,7 +2861,7 @@ void ISel::visitLoadInst(LoadInst &I) { case Instruction::Cast: // If this is a cast from a signed-integer type to a floating point type, // fold the cast here. - if (getClass(User->getType()) == cFP && + if (getClassB(User->getType()) == cFP && (I.getType() == Type::ShortTy || I.getType() == Type::IntTy || I.getType() == Type::LongTy)) { unsigned DestReg = getReg(User); |