aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-29 16:40:32 +0000
committerChris Lattner <sabre@nondot.org>2001-10-29 16:40:32 +0000
commit7b8660d72f35f5ddea0c81eb71f2bdd60fd62832 (patch)
treeb0277a7855129b208dc884053125e7b1192a08f5
parent207b5bc6a15e12a87c3c861da680b8b23559a34c (diff)
Fix blatent bugs in checkin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1032 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/VMCore/AsmWriter.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp
index 703bebe41c..a53e484ded 100644
--- a/lib/VMCore/AsmWriter.cpp
+++ b/lib/VMCore/AsmWriter.cpp
@@ -231,9 +231,9 @@ ostream &WriteTypeSymbolic(ostream &Out, const Type *Ty, const Module *M) {
map<const Type *, string> TypeNames;
fillTypeNameTable(M, TypeNames);
- return printTypeInt(Out, V->getType(), TypeNames);
+ return printTypeInt(Out, Ty, TypeNames);
} else {
- return Out << V->getType()->getDescription();
+ return Out << Ty->getDescription();
}
}
@@ -244,9 +244,8 @@ ostream &WriteTypeSymbolic(ostream &Out, const Type *Ty, const Module *M) {
//
ostream &WriteAsOperand(ostream &Out, const Value *V, bool PrintType,
bool PrintName, SlotCalculator *Table) {
- if (PrintType) {
- WriteTypeSymbolic(Ty, getModuleFromVal(V));
- }
+ if (PrintType)
+ WriteTypeSymbolic(Out, V->getType(), getModuleFromVal(V));
WriteAsOperandInternal(Out, V, PrintName, Table);
return Out;