diff --git a/lib/IR/AsmWriter.cpp b/lib/IR/AsmWriter.cpp index 87d26b164bb..a7499bc09b3 100644 --- a/lib/IR/AsmWriter.cpp +++ b/lib/IR/AsmWriter.cpp @@ -1528,11 +1528,6 @@ void AssemblyWriter::printAlias(const GlobalAlias *GA) { writeOperand(Aliasee, !isa(Aliasee)); } - if (GA->hasComdat()) { - Out << ", comdat "; - PrintLLVMName(Out, GA->getComdat()->getName(), ComdatPrefix); - } - printInfoComment(*GA); Out << '\n'; } diff --git a/test/Feature/comdat.ll b/test/Feature/comdat.ll index 6b94a418582..05fb87c648e 100644 --- a/test/Feature/comdat.ll +++ b/test/Feature/comdat.ll @@ -9,6 +9,9 @@ $f2 = comdat any @v = global i32 0, comdat $f ; CHECK: @v = global i32 0, comdat $f +@a = alias i32* @v +; CHECK: @a = alias i32* @v{{$}} + define void @f() comdat $f { ret void }