From f434cd1b30a77afa26de46a3e7afb8a07b536c6f Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 20 Oct 2001 09:33:10 +0000 Subject: [PATCH] Fix shift printing when using a ubyte LHS git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@925 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/AsmWriter.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 20f2fe077f2..13e01190808 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -387,6 +387,9 @@ void AssemblyWriter::processInstruction(const Instruction *I) { } } + // Shift Left & Right print both types even for Ubyte LHS + if (isa(I)) PrintAllTypes = true; + if (!PrintAllTypes) Out << " " << I->getOperand(0)->getType(); -- 2.34.1