[lld] [lld-macho][NFC] Track category merger input data source language for better verification (PR #95473)
Kyungwoo Lee via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 14 23:14:27 PDT 2024
================
@@ -349,11 +349,15 @@ void objc::checkCategories() {
namespace {
class ObjcCategoryMerger {
+ // In which language was a particular construct originally defined
+ enum SourceLanguage { ObjC, Swift, Unknown };
----------------
kyulee-com wrote:
It seems natural to start with an invalid case (0) for `Unknown`.
```suggestion
enum SourceLanguage { Unknown, ObjC, Swift };
```
https://github.com/llvm/llvm-project/pull/95473
More information about the llvm-commits
mailing list