Fix shift printing when using a ubyte LHS
authorChris Lattner <sabre@nondot.org>
Sat, 20 Oct 2001 09:33:10 +0000 (09:33 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 20 Oct 2001 09:33:10 +0000 (09:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@925 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/AsmWriter.cpp

index 20f2fe077f2ba6041f3ff72692419af66405b95e..13e01190808ea5c8081a833be79c097fd5ebb854 100644 (file)
@@ -387,6 +387,9 @@ void AssemblyWriter::processInstruction(const Instruction *I) {
       }
     }
 
+    // Shift Left & Right print both types even for Ubyte LHS
+    if (isa<ShiftInst>(I)) PrintAllTypes = true;
+
     if (!PrintAllTypes)
       Out << " " << I->getOperand(0)->getType();