swift
1b0e5d1a - Adjust to "[ADT] Add LLVM_ATTRIBUTE_WARN_UNUSED to ADT classes (#239908)"

Commit
12 days ago
Adjust to "[ADT] Add LLVM_ATTRIBUTE_WARN_UNUSED to ADT classes (#239908)" ``` swift/lib/DependencyScan/ModuleDependencyCacheSerialization.cpp:288:27: error: unused variable 'alreadyAdded' [-Werror,-Wunused-variable] 288 | llvm::StringSet<> alreadyAdded; | ^~~~~~~~~~~~ ``` `StringSet` and other ADT classes are now marked `LLVM_ATTRIBUTE_WARN_UNUSED`, so the compiler diagnoses unused locals of these types despite their non-trivial constructors and destructors. The two `alreadyAdded` locals in `ModuleDependencyCacheSerialization.cpp` and the `alreadyKnownModules` local in `ModuleDependencyScanner.cpp` are dead, so remove them. See https://github.com/llvm/llvm-project/commit/1491d92be8192f9bf5343e3738bd08895fd4b8c0 (https://github.com/llvm/llvm-project/pull/239908).
Author
Committer
Parents
Loading