From 66a9d6702f6f6f89aac64bc0cd31c437836dfffc Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Wed, 22 Jul 2009 18:10:23 +0000 Subject: [PATCH] Do not print "metadata" twice while printing MDString. This fixes unittest failure. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76764 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/AsmWriter.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 17d0478d59c..6e84af3211c 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -1133,8 +1133,6 @@ static void WriteAsOperandInternal(raw_ostream &Out, const Value *V, } if (const MDString *MDS = dyn_cast(V)) { - TypePrinter.print(MDS->getType(), Out); - Out << ' '; Out << "!\""; PrintEscapedString(MDS->begin(), MDS->size(), Out); Out << '"'; -- 2.34.1