diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index fd3cda61480..b90a5b28577 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -915,8 +915,9 @@ void AssemblyWriter::printInstruction(const Instruction &I) { bool PrintAllTypes = false; const Type *TheType = Operand->getType(); - // Shift Left & Right print both types even for Ubyte LHS - if (isa(I)) { + // Shift Left & Right print both types even for Ubyte LHS, and select prints + // types even if all operands are bools. + if (isa(I) || isa(I)) { PrintAllTypes = true; } else { for (unsigned i = 1, E = I.getNumOperands(); i != E; ++i) {