[llvm] ff0eec4 - NFC: Formatting fix in TableGEn/OptParserEmitter.cpp

Daniel Grumberg via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 5 02:51:33 PDT 2020


Author: Daniel Grumberg
Date: 2020-06-05T10:51:10+01:00
New Revision: ff0eec4c9ee089651ccd804e82c2bdd3703a48e9

URL: https://github.com/llvm/llvm-project/commit/ff0eec4c9ee089651ccd804e82c2bdd3703a48e9
DIFF: https://github.com/llvm/llvm-project/commit/ff0eec4c9ee089651ccd804e82c2bdd3703a48e9.diff

LOG: NFC: Formatting fix in TableGEn/OptParserEmitter.cpp

Added: 
    

Modified: 
    llvm/utils/TableGen/OptParserEmitter.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/utils/TableGen/OptParserEmitter.cpp b/llvm/utils/TableGen/OptParserEmitter.cpp
index 4e19c76cdf22..be9e95a853dc 100644
--- a/llvm/utils/TableGen/OptParserEmitter.cpp
+++ b/llvm/utils/TableGen/OptParserEmitter.cpp
@@ -190,8 +190,7 @@ void EmitOptParser(RecordKeeper &Records, raw_ostream &OS) {
     int NumFlags = 0;
     const ListInit *LI = R.getValueAsListInit("Flags");
     for (Init *I : *LI)
-      OS << (NumFlags++ ? " | " : "")
-         << cast<DefInit>(I)->getDef()->getName();
+      OS << (NumFlags++ ? " | " : "") << cast<DefInit>(I)->getDef()->getName();
     if (GroupFlags) {
       for (Init *I : *GroupFlags)
         OS << (NumFlags++ ? " | " : "")


        


More information about the llvm-commits mailing list