mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-20 08:54:08 +00:00
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
This commit is contained in:
parent
6dba7669e0
commit
66a9d6702f
@ -1133,8 +1133,6 @@ static void WriteAsOperandInternal(raw_ostream &Out, const Value *V,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (const MDString *MDS = dyn_cast<MDString>(V)) {
|
if (const MDString *MDS = dyn_cast<MDString>(V)) {
|
||||||
TypePrinter.print(MDS->getType(), Out);
|
|
||||||
Out << ' ';
|
|
||||||
Out << "!\"";
|
Out << "!\"";
|
||||||
PrintEscapedString(MDS->begin(), MDS->size(), Out);
|
PrintEscapedString(MDS->begin(), MDS->size(), Out);
|
||||||
Out << '"';
|
Out << '"';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user