diff options
-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 da3826019a..f92fe25fd2 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -458,6 +458,9 @@ std::ostream &WriteAsOperand(std::ostream &Out, const Value *V, bool PrintType, if (PrintType) printTypeInt(Out, V->getType(), TypeNames); + if (const Type *Ty = dyn_cast<Type> (V)) + printTypeInt(Out, Ty, TypeNames); + WriteAsOperandInternal(Out, V, PrintName, TypeNames, 0); return Out; } |