From 72ab076e671bee289e9e83f23b382131ea5c1560 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Wed, 3 Sep 2008 22:55:40 +0000 Subject: [PATCH] Avoid extra comma. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55742 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/AsmWriter.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 0c5a9fc1d35..4d18fb174d3 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -1407,10 +1407,11 @@ void AssemblyWriter::printFunction(const Function *F) { NeedComma = true; Out << "inline=never"; } - if (NeedComma) - Out << ","; - if (FNotes & FN_NOTE_OptimizeForSize) + if (FNotes & FN_NOTE_OptimizeForSize) { + if (NeedComma) + Out << ","; Out << "opt_size"; + } Out << ")"; } if (F->isDeclaration()) {