[PATCH] D33467: Fix LLVM build errors if necent build of GCC 7 is used

Chandler Carruth via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 23 15:25:10 PDT 2017

chandlerc added a comment.

What error are you trying to fix? We use flags without `.getValue()` all over the place, I don't know why we would need to change that here.

Comment at: lib/Transforms/IPO/PassManagerBuilder.cpp:173
     EnablePGOInstrGen = RunPGOInstrGen;
-    PGOInstrGen = PGOOutputFile;
-    PGOInstrUse = RunPGOInstrUse;
+    PGOInstrGen = RunPGOInstrGen.getValue();
+    PGOInstrUse = RunPGOInstrUse.getValue();
This isn't right -- the previous code was correct.



More information about the cfe-commits mailing list