================ @@ -254,35 +257,57 @@ Error IR2VecVocabAnalysis::readVocabulary() { return createStringError(errc::illegal_byte_sequence, "Unable to parse the vocabulary"); } - assert(Vocabulary.size() > 0 && "Vocabulary is empty"); + + if (Vocabulary.empty()) { ---------------- mtrofin wrote:
you can avoid `{}` for simple cases like these https://llvm.org/docs/CodingStandards.html#don-t-use-braces-on-simple-single-statement-bodies-of-if-else-loop-statements https://github.com/llvm/llvm-project/pull/143200 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits