diff options
Diffstat (limited to 'llvm/include/llvm/MC/MCObjectStreamer.h')
-rw-r--r-- | llvm/include/llvm/MC/MCObjectStreamer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/MC/MCObjectStreamer.h b/llvm/include/llvm/MC/MCObjectStreamer.h index 71edf589b02..b35eb862991 100644 --- a/llvm/include/llvm/MC/MCObjectStreamer.h +++ b/llvm/include/llvm/MC/MCObjectStreamer.h @@ -74,7 +74,7 @@ protected: void insert(MCFragment *F) { flushPendingLabels(F); CurSectionData->getFragmentList().insert(CurInsertionPoint, F); - F->setParent(CurSectionData); + F->setParent(&CurSectionData->getSection()); } /// Get a data fragment to write into, creating a new one if the current |