Skip to content
Snippets Groups Projects
Commit 0f19e91a authored by Duncan Sands's avatar Duncan Sands
Browse files

When doing "opt -O2" verify the bitcode like is done for

"opt -std-compile-opts".

llvm-svn: 146036
parent 4d2b32ba
No related branches found
No related tags found
No related merge requests found
...@@ -407,6 +407,8 @@ static inline void addPass(PassManagerBase &PM, Pass *P) { ...@@ -407,6 +407,8 @@ static inline void addPass(PassManagerBase &PM, Pass *P) {
/// OptLevel - Optimization Level /// OptLevel - Optimization Level
static void AddOptimizationPasses(PassManagerBase &MPM,FunctionPassManager &FPM, static void AddOptimizationPasses(PassManagerBase &MPM,FunctionPassManager &FPM,
unsigned OptLevel) { unsigned OptLevel) {
FPM.add(createVerifierPass()); // Verify that input is correct
PassManagerBuilder Builder; PassManagerBuilder Builder;
Builder.OptLevel = OptLevel; Builder.OptLevel = OptLevel;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment