[PATCH] D34426: [Driver] Do not increment ActionCount for precompiled headers.

Manoj Gupta via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 20 15:33:25 PDT 2017


manojgupta updated this revision to Diff 103280.

https://reviews.llvm.org/D34426

Files:
  lib/Driver/Driver.cpp


Index: lib/Driver/Driver.cpp
===================================================================
--- lib/Driver/Driver.cpp
+++ lib/Driver/Driver.cpp
@@ -2759,7 +2759,7 @@
   if (FinalOutput) {
     unsigned NumOutputs = 0;
     for (const Action *A : C.getActions())
-      if (A->getType() != types::TY_Nothing)
+      if (A->getType() != types::TY_Nothing && A->getType() != types::TY_PCH)
         ++NumOutputs;
 
     if (NumOutputs > 1) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34426.103280.patch
Type: text/x-patch
Size: 444 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170620/1d69fdf9/attachment.bin>


More information about the cfe-commits mailing list