Skip to content
  • David Blaikie's avatar
    Reinstate -O3 for LTO. · 787705ae
    David Blaikie authored
    This broke in r144788 when the CodeGenOpt option was moved from everywhere else
    (specifically, from addPassesToEmitFile) to createTargetMachine. Since
    LTOCodeGenerator wasn't passing the 4th argument, when the 4th parameter became
    the 3rd, it silently continued to compile (int->bool conversion) but meant
    something completely different.
    
    This change preserves the existing (accidental) and previous (default)
    semantics of the addPassesToEmitFile and restores the previous/intended
    CodeGenOpt argument by passing it appropriately to createTargetMachine.
    
    (discovered by pending changes to -Wconversion to catch constant->bool
    conversions)
    
    llvm-svn: 157705
    787705ae
Loading