summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCObjectStreamer.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-10-10 00:13:11 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-10-10 00:13:11 +0000
commita5f45da27e5c63102780bcfb548873e1d268e5f1 (patch)
treed9fa5715905c4fb8779771c9b7ee85f67295bcbe /llvm/lib/MC/MCObjectStreamer.cpp
parentd90a4176ffd84517da1fbb47fa33aef1d5ad6e4c (diff)
downloadbcm5719-llvm-a5f45da27e5c63102780bcfb548873e1d268e5f1.tar.gz
bcm5719-llvm-a5f45da27e5c63102780bcfb548873e1d268e5f1.zip
MC: Remove implicit ilist iterator conversions, NFC
llvm-svn: 249922
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 992b2cfe359..0da61b5ddce 100644
--- a/llvm/lib/MC/MCObjectStreamer.cpp
+++ b/llvm/lib/MC/MCObjectStreamer.cpp
@@ -94,7 +94,7 @@ MCFragment *MCObjectStreamer::getCurrentFragment() const {
assert(getCurrentSectionOnly() && "No current section!");
if (CurInsertionPoint != getCurrentSectionOnly()->getFragmentList().begin())
- return std::prev(CurInsertionPoint);
+ return &*std::prev(CurInsertionPoint);
return nullptr;
}
OpenPOWER on IntegriCloud