[PATCH] D38734: [MachineCombiner] Fix initialisation of LastUpdate for incremental update.

Amara Emerson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 10 09:18:16 PDT 2017


aemerson added inline comments.


================
Comment at: lib/CodeGen/MachineCombiner.cpp:417
   bool IncrementalUpdate = false;
   auto BlockIter = MBB->begin();
+  decltype(BlockIter) LastUpdate;
----------------
fhahn wrote:
> just out of curiosity, would `auto auto BlockIter = MBB->begin(), LastUpdate;` work?
At this point just use the type explicitly?


https://reviews.llvm.org/D38734





More information about the llvm-commits mailing list