[llvm] 0c794ab - [ThinTLOBitcodeWriter] Fix unused variable warning (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 20 11:19:59 PDT 2021
Author: Nikita Popov
Date: 2021-07-20T20:19:47+02:00
New Revision: 0c794abff12db9d3d307b744029a9eb67308fa2c
URL: https://github.com/llvm/llvm-project/commit/0c794abff12db9d3d307b744029a9eb67308fa2c
DIFF: https://github.com/llvm/llvm-project/commit/0c794abff12db9d3d307b744029a9eb67308fa2c.diff
LOG: [ThinTLOBitcodeWriter] Fix unused variable warning (NFC)
Added:
Modified:
llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp b/llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
index 1644c655d00f..45f327e00736 100644
--- a/llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
+++ b/llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
@@ -71,7 +71,7 @@ void promoteInternals(Module &ExportM, Module &ImportM, StringRef ModuleId,
ImportGV->setVisibility(GlobalValue::HiddenVisibility);
}
- if (Function *F = dyn_cast<Function>(&ExportGV)) {
+ if (isa<Function>(&ExportGV)) {
// Create a local alias with the original name to avoid breaking
// references from inline assembly.
std::string Alias = ".set " + OldName + "," + NewName + "\n";
More information about the llvm-commits
mailing list