[llvm] r351397 - Fix a mistake in rL351392.

Wei Mi via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 16 15:31:41 PST 2019


Author: wmi
Date: Wed Jan 16 15:31:40 2019
New Revision: 351397

URL: http://llvm.org/viewvc/llvm-project?rev=351397&view=rev
Log:
Fix a mistake in rL351392.

PGOInstrGen should be initialized to "" instead of false.

Modified:
    llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp

Modified: llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp?rev=351397&r1=351396&r2=351397&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp Wed Jan 16 15:31:40 2019
@@ -162,7 +162,7 @@ PassManagerBuilder::PassManagerBuilder()
     MergeFunctions = false;
     PrepareForLTO = false;
     EnablePGOInstrGen = false;
-    PGOInstrGen = false;
+    PGOInstrGen = "";
     PGOInstrUse = "";
     PGOSampleUse = "";
     PrepareForThinLTO = EnablePrepareForThinLTO;




More information about the llvm-commits mailing list