aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCObjectStreamer.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2024-06-10 18:27:34 -0700
committerFangrui Song <i@maskray.me>2024-06-10 18:27:34 -0700
commitcb63abca27e1813ae58ded466cd81ba3952ab888 (patch)
treeda6ce3f868a1e7043f9125add495f8899ebfc224 /llvm/lib/MC/MCObjectStreamer.cpp
parent8e12f31be5a98a66700dd3571e4e12465f05ad61 (diff)
downloadllvm-cb63abca27e1813ae58ded466cd81ba3952ab888.zip
llvm-cb63abca27e1813ae58ded466cd81ba3952ab888.tar.gz
llvm-cb63abca27e1813ae58ded466cd81ba3952ab888.tar.bz2
[MC] Remove getFragmentList uses. NFC
Diffstat (limited to 'llvm/lib/MC/MCObjectStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCObjectStreamer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCObjectStreamer.cpp b/llvm/lib/MC/MCObjectStreamer.cpp
index 8d3873b..ae4e691 100644
--- a/llvm/lib/MC/MCObjectStreamer.cpp
+++ b/llvm/lib/MC/MCObjectStreamer.cpp
@@ -202,7 +202,7 @@ void MCObjectStreamer::emitFrames(MCAsmBackend *MAB) {
MCFragment *MCObjectStreamer::getCurrentFragment() const {
assert(getCurrentSectionOnly() && "No current section!");
- if (CurInsertionPoint != getCurrentSectionOnly()->getFragmentList().begin())
+ if (CurInsertionPoint != getCurrentSectionOnly()->begin())
return &*std::prev(CurInsertionPoint);
return nullptr;