[llvm] 36e2b37 - [BitcodeReader] Remove two unused variables
Bjorn Pettersson via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 23 05:27:43 PDT 2023
Author: Bjorn Pettersson
Date: 2023-08-23T14:24:30+02:00
New Revision: 36e2b37a29ea2dc4cf5098b5539a72a15558b41b
URL: https://github.com/llvm/llvm-project/commit/36e2b37a29ea2dc4cf5098b5539a72a15558b41b
DIFF: https://github.com/llvm/llvm-project/commit/36e2b37a29ea2dc4cf5098b5539a72a15558b41b.diff
LOG: [BitcodeReader] Remove two unused variables
Added:
Modified:
llvm/lib/Bitcode/Reader/MetadataLoader.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Bitcode/Reader/MetadataLoader.cpp b/llvm/lib/Bitcode/Reader/MetadataLoader.cpp
index 0a9a80688a419c..b4b8690523244e 100644
--- a/llvm/lib/Bitcode/Reader/MetadataLoader.cpp
+++ b/llvm/lib/Bitcode/Reader/MetadataLoader.cpp
@@ -555,12 +555,12 @@ class MetadataLoader::MetadataLoaderImpl {
if (!CU)
continue;
- if (auto *RawImported = CU->getRawImportedEntities()) {
+ if (CU->getRawImportedEntities()) {
// Collect a set of imported entities to be moved.
SetVector<Metadata *> EntitiesToRemove;
for (Metadata *Op : CU->getImportedEntities()->operands()) {
auto *IE = cast<DIImportedEntity>(Op);
- if (auto *S = dyn_cast_or_null<DILocalScope>(IE->getScope())) {
+ if (dyn_cast_or_null<DILocalScope>(IE->getScope())) {
EntitiesToRemove.insert(IE);
}
}
More information about the llvm-commits
mailing list