diff options
| -rw-r--r-- | llvm/include/llvm/Analysis/ScalarEvolutionExpander.h | 3 | ||||
| -rw-r--r-- | llvm/include/llvm/Support/TargetFolder.h | 3 | ||||
| -rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 2 | 
3 files changed, 3 insertions, 5 deletions
diff --git a/llvm/include/llvm/Analysis/ScalarEvolutionExpander.h b/llvm/include/llvm/Analysis/ScalarEvolutionExpander.h index 915227d77b5..bbdd0437a1e 100644 --- a/llvm/include/llvm/Analysis/ScalarEvolutionExpander.h +++ b/llvm/include/llvm/Analysis/ScalarEvolutionExpander.h @@ -38,8 +38,7 @@ namespace llvm {      friend struct SCEVVisitor<SCEVExpander, Value*>;    public:      explicit SCEVExpander(ScalarEvolution &se) -      : SE(se), Builder(se.getContext(), -                        TargetFolder(se.TD, se.getContext())) {} +      : SE(se), Builder(se.getContext(), TargetFolder(se.TD)) {}      /// clear - Erase the contents of the InsertedExpressions map so that users      /// trying to expand the same expression into multiple BasicBlocks or diff --git a/llvm/include/llvm/Support/TargetFolder.h b/llvm/include/llvm/Support/TargetFolder.h index a4b7d128414..afed853e867 100644 --- a/llvm/include/llvm/Support/TargetFolder.h +++ b/llvm/include/llvm/Support/TargetFolder.h @@ -40,8 +40,7 @@ class TargetFolder {    }  public: -  explicit TargetFolder(const TargetData *TheTD, LLVMContext &C) : -    TD(TheTD) {} +  explicit TargetFolder(const TargetData *TheTD) : TD(TheTD) {}    //===--------------------------------------------------------------------===//    // Binary Operators diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index 2bfa8d54a3b..9d179aea67e 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp @@ -13064,7 +13064,7 @@ bool InstCombiner::runOnFunction(Function &F) {    /// Builder - This is an IRBuilder that automatically inserts new    /// instructions into the worklist when they are created.    IRBuilder<true, TargetFolder, InstCombineIRInserter>  -    TheBuilder(F.getContext(), TargetFolder(TD, F.getContext()), +    TheBuilder(F.getContext(), TargetFolder(TD),                 InstCombineIRInserter(Worklist));    Builder = &TheBuilder;  | 

