[ThinTLOBitcodeWriter] Fix unused variable warning (NFC)

This commit is contained in:
Nikita Popov
2021-07-20 19:57:11 +02:00
parent 168546a427
commit aff28b4fbb

View File

@@ -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";