mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-19 01:34:32 +00:00
Don't save a temporary string into a StringRef field.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98538 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1f8008cf21
commit
ad181304e1
@ -39,7 +39,7 @@ class MCSectionELF : public MCSection {
|
||||
protected:
|
||||
MCSectionELF(StringRef Section, unsigned type, unsigned flags,
|
||||
SectionKind K, bool isExplicit)
|
||||
: MCSection(K), SectionName(Section.str()), Type(type), Flags(flags),
|
||||
: MCSection(K), SectionName(Section), Type(type), Flags(flags),
|
||||
IsExplicit(isExplicit) {}
|
||||
public:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user