[ThinTLOBitcodeWriter] Fix unused variable warning (NFC)

This commit is contained in:
Nikita Popov 2021-07-20 19:57:11 +02:00
parent 1f8d3fd42b
commit 0c794abff1
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ void promoteInternals(Module &ExportM, Module &ImportM, StringRef ModuleId,
ImportGV->setVisibility(GlobalValue::HiddenVisibility); 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 // Create a local alias with the original name to avoid breaking
// references from inline assembly. // references from inline assembly.
std::string Alias = ".set " + OldName + "," + NewName + "\n"; std::string Alias = ".set " + OldName + "," + NewName + "\n";