search for: d32682

Displaying 1 result from an estimated 1 matches for "d32682".

Did you mean: 32682
2017 May 02
2
When to use auto instead of iterator/const_iterator?
...ewrite above code as, for (auto &Succ : SU->Succs) if (Succ.isCtrl()) NumberDeps++; Or do we need to use `const auto &` instead, like this for ( ​const ​ auto &Succ : SU->Succs) if (Succ.isCtrl()) NumberDeps++; Thanks. [1] https://reviews.llvm.org/D32682 Regards, chenwj -- Wei-Ren Chen (陳韋任) Homepage: https://people.cs.nctu.edu.tw/~chenwj -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170502/89ac5d06/attachment.html>