[NFC] First test commit
authorJan Svoboda <jan_svoboda@apple.com>
Wed, 11 Nov 2020 09:20:11 +0000 (10:20 +0100)
committerJan Svoboda <jan_svoboda@apple.com>
Wed, 11 Nov 2020 09:20:11 +0000 (10:20 +0100)
llvm/utils/TableGen/OptParserEmitter.cpp

index 0c30a2d..d791bd8 100644 (file)
@@ -39,10 +39,12 @@ static const std::string getOptionSpelling(const Record &R,
                                            size_t &PrefixLength) {
   std::vector<StringRef> Prefixes = R.getValueAsListOfStrings("Prefixes");
   StringRef Name = R.getValueAsString("Name");
+
   if (Prefixes.empty()) {
     PrefixLength = 0;
     return Name.str();
   }
+
   PrefixLength = Prefixes[0].size();
   return (Twine(Prefixes[0]) + Twine(Name)).str();
 }