[PATCH] D39396: Fix for PR33930. Short-circuit metadata mapping when cloning a varargs thunk.

Wolfgang Pieb via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 30 13:06:42 PDT 2017


wolfgangp marked 5 inline comments as done.
wolfgangp added inline comments.


================
Comment at: lib/CodeGen/CGVTables.cpp:143
+  for (llvm::Function::iterator BB = Fn->begin(), E = Fn->end(); BB != E;
+       ++BB) {
+    for (llvm::Instruction &I : *BB) {
----------------
aprantl wrote:
> does this work?
> `for (auto &BB : Fn->getBasicBlockList())`
Yep, thanks. I wasn't aware of this.


https://reviews.llvm.org/D39396





More information about the cfe-commits mailing list