diff options
author | Chris Lattner <sabre@nondot.org> | 2001-10-20 09:33:10 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-10-20 09:33:10 +0000 |
commit | f434cd1b30a77afa26de46a3e7afb8a07b536c6f (patch) | |
tree | 3995376e322eab23674e6970ecfe8fead6a8710e /lib/VMCore | |
parent | 42c9e77ffbb9302a8132dcb1af94bf8f9e79647b (diff) | |
download | external_llvm-f434cd1b30a77afa26de46a3e7afb8a07b536c6f.zip external_llvm-f434cd1b30a77afa26de46a3e7afb8a07b536c6f.tar.gz external_llvm-f434cd1b30a77afa26de46a3e7afb8a07b536c6f.tar.bz2 |
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
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 20f2fe0..13e0119 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<ShiftInst>(I)) PrintAllTypes = true; + if (!PrintAllTypes) Out << " " << I->getOperand(0)->getType(); |