[llvm] Remove redundant string initialization (NFC)

Identified with readability-redundant-string-init.
This commit is contained in:
Kazu Hirata
2021-01-12 21:43:46 -08:00
parent 5f9a319f66
commit dfbe37a54f
17 changed files with 26 additions and 26 deletions
+1 -1
View File
@@ -917,7 +917,7 @@ MCSection *TargetLoweringObjectFileELF::getSectionForMachineBasicBlock(
}
unsigned Flags = ELF::SHF_ALLOC | ELF::SHF_EXECINSTR;
std::string GroupName = "";
std::string GroupName;
if (F.hasComdat()) {
Flags |= ELF::SHF_GROUP;
GroupName = F.getComdat()->getName().str();