[llvm] r358120 - [llvm] Non-functional change: declared a local variable as const.

Ali Tamur via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 10 11:30:03 PDT 2019


Author: tamur
Date: Wed Apr 10 11:30:03 2019
New Revision: 358120

URL: http://llvm.org/viewvc/llvm-project?rev=358120&view=rev
Log:
[llvm] Non-functional change: declared a local variable as const.

Modified:
    llvm/trunk/lib/MC/MCAsmStreamer.cpp

Modified: llvm/trunk/lib/MC/MCAsmStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCAsmStreamer.cpp?rev=358120&r1=358119&r2=358120&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCAsmStreamer.cpp (original)
+++ llvm/trunk/lib/MC/MCAsmStreamer.cpp Wed Apr 10 11:30:03 2019
@@ -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()) {




More information about the llvm-commits mailing list