[PATCH] D22057: Prevent devirtualization of calls to un-instantiated functions.

Piotr Padlewski via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Jan 28 09:49:39 PST 2017


Prazek added a comment.

I have read the patch, but I don't have enough knowledge about C++ rules and fronted to accept it. Richard?



================
Comment at: lib/Sema/Sema.cpp:684
+      for (auto PII : Pending) 
+        if (FunctionDecl *Func = dyn_cast<FunctionDecl>(PII.first))
+          Func->setMarkedForPendingInstantiation();
----------------
Prazek wrote:
> Dry. Use auto
auto *


https://reviews.llvm.org/D22057





More information about the cfe-commits mailing list