diff options
author | Kazu Hirata <kazu@google.com> | 2021-01-12 21:43:46 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2021-01-12 21:43:46 -0800 |
commit | 12fc9ca3a4037a26d4bc0ac98213c846ad96e51b (patch) | |
tree | 3fe3f3a79b14f98f2e536d2d6d0d67a937399383 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | fba9805ba3491db03ad538ea2db2f225f57ff98e (diff) | |
download | llvm-12fc9ca3a4037a26d4bc0ac98213c846ad96e51b.zip llvm-12fc9ca3a4037a26d4bc0ac98213c846ad96e51b.tar.gz llvm-12fc9ca3a4037a26d4bc0ac98213c846ad96e51b.tar.bz2 |
[llvm] Remove redundant string initialization (NFC)
Identified with readability-redundant-string-init.
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index 7bc5c98..32e8393 100644 --- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp @@ -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(); |