[PATCH] D86016: clang-tidy.

Rahman Lavaee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 15 02:58:04 PDT 2020


rahmanl created this revision.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
rahmanl requested review of this revision.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D86016

Files:
  llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp


Index: llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
===================================================================
--- llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -1040,7 +1040,7 @@
   // Emit the total number of basic blocks in this function.
   OutStreamer->emitULEB128IntValue(MF.size());
   // Emit BB Information for each basic block in the funciton.
-  for (auto &MBB : MF) {
+  for (const auto &MBB : MF) {
     const MCSymbol *MBBSymbol =
         MBB.pred_empty() ? FunctionSymbol : MBB.getSymbol();
     // Emit the basic block offset.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86016.285827.patch
Type: text/x-patch
Size: 598 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200815/c794308c/attachment.bin>


More information about the llvm-commits mailing list