Avoid extra comma.
authorDevang Patel <dpatel@apple.com>
Wed, 3 Sep 2008 22:55:40 +0000 (22:55 +0000)
committerDevang Patel <dpatel@apple.com>
Wed, 3 Sep 2008 22:55:40 +0000 (22:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55742 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/AsmWriter.cpp

index 0c5a9fc1d356e3e7952fcdf27e482c5d057feae3..4d18fb174d32bb54455b7a57127412b24e5ebb9b 100644 (file)
@@ -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()) {