File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -871,8 +871,8 @@ InputSectionBase *ObjFile<ELFT>::createInputSection(uint32_t idx,
871
871
if (Error e = attributes.parse (contents, config->ekind == ELF32LEKind
872
872
? support::little
873
873
: support::big)) {
874
- auto * isec = make<InputSection> (*this , sec, name);
875
- warn (toString (isec) + " : " + llvm::toString (std::move (e)));
874
+ InputSection isec (*this , sec, name);
875
+ warn (toString (& isec) + " : " + llvm::toString (std::move (e)));
876
876
} else {
877
877
updateSupportedARMFeatures (attributes);
878
878
updateARMVFPArgs (attributes, this );
@@ -893,8 +893,8 @@ InputSectionBase *ObjFile<ELFT>::createInputSection(uint32_t idx,
893
893
RISCVAttributeParser attributes;
894
894
ArrayRef<uint8_t > contents = check (this ->getObj ().getSectionContents (sec));
895
895
if (Error e = attributes.parse (contents, support::little)) {
896
- auto * isec = make<InputSection> (*this , sec, name);
897
- warn (toString (isec) + " : " + llvm::toString (std::move (e)));
896
+ InputSection isec (*this , sec, name);
897
+ warn (toString (& isec) + " : " + llvm::toString (std::move (e)));
898
898
} else {
899
899
// FIXME: Validate arch tag contains C if and only if EF_RISCV_RVC is
900
900
// present.
You can’t perform that action at this time.
0 commit comments