mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-01 10:56:08 +00:00
Initialize the RelocationSectionBase::Section member.
In r314227, it wasn't always, and would thus contain random garbage. llvm-svn: 314256
This commit is contained in:
parent
347ff633f7
commit
2ea995adf0
@ -218,6 +218,8 @@ void RelocationSectionBase<SymTabType>::initialize(SectionTableRef SecTable) {
|
||||
setSection(SecTable.getSection(Info,
|
||||
"Info field value " + Twine(Info) +
|
||||
" in section " + Name + " is invalid"));
|
||||
else
|
||||
setSection(nullptr);
|
||||
}
|
||||
|
||||
template <class SymTabType> void RelocationSectionBase<SymTabType>::finalize() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user