[PATCH] D59664: [llvm] Non-functional change: declared a couple of local variables as const.
Ali Tamur via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 25 21:49:00 PDT 2019
tamur updated this revision to Diff 192245.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D59664/new/
https://reviews.llvm.org/D59664
Files:
llvm/lib/MC/MCAsmStreamer.cpp
Index: llvm/lib/MC/MCAsmStreamer.cpp
===================================================================
--- llvm/lib/MC/MCAsmStreamer.cpp
+++ llvm/lib/MC/MCAsmStreamer.cpp
@@ -1911,7 +1911,7 @@
// 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()) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59664.192245.patch
Type: text/x-patch
Size: 686 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190326/73bfbd93/attachment.bin>
More information about the llvm-commits
mailing list