From: Ali Tamur Date: Wed, 10 Apr 2019 18:30:03 +0000 (+0000) Subject: [llvm] Non-functional change: declared a local variable as const. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b7bce147ad2e8ca4d81ebd3368398cf48aa50ffe;p=llvm [llvm] Non-functional change: declared a local variable as const. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358120 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/MC/MCAsmStreamer.cpp b/lib/MC/MCAsmStreamer.cpp index 4785d3eb790..ef5c4666d92 100644 --- a/lib/MC/MCAsmStreamer.cpp +++ b/lib/MC/MCAsmStreamer.cpp @@ -1911,7 +1911,7 @@ void MCAsmStreamer::FinishImpl() { // Emit the label for the line table, if requested - since the rest of the // line table will be defined by .loc/.file directives, and not emitted // directly, the label is the only work required here. - auto &Tables = getContext().getMCDwarfLineTables(); + const auto &Tables = getContext().getMCDwarfLineTables(); if (!Tables.empty()) { assert(Tables.size() == 1 && "asm output only supports one line table"); if (auto *Label = Tables.begin()->second.getLabel()) {