From 394f0441e06dafca29f0752cf400990a5b8fe4b1 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 22 Oct 2008 23:32:42 +0000 Subject: Change create*Pass factory functions to return Pass* instead of LoopPass*. - Although less precise, this means they can be used in clients without RTTI (who would otherwise need to include LoopPass.h, which eventually includes things using dynamic_cast). This was the simplest solution that presented itself, but I am happy to use a better one if available. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58010 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/LoopStrengthReduce.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Transforms/Scalar/LoopStrengthReduce.cpp') diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp index 30e86447f2..9052d6088e 100644 --- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -213,7 +213,7 @@ char LoopStrengthReduce::ID = 0; static RegisterPass X("loop-reduce", "Loop Strength Reduction"); -LoopPass *llvm::createLoopStrengthReducePass(const TargetLowering *TLI) { +Pass *llvm::createLoopStrengthReducePass(const TargetLowering *TLI) { return new LoopStrengthReduce(TLI); } -- cgit v1.2.3-70-g09d2