summaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2013-11-22 11:34:43 +0000
committerChandler Carruth <chandlerc@gmail.com>2013-11-22 11:34:43 +0000
commit3f081983cc79cdb16a83ac01e2ea04697bd8b892 (patch)
treeea3ae3985133b4815b822b527c24b7cc95c38477 /unittests
parent8dc7f94f4db4cdf2cb6566490908440a58dac19a (diff)
downloadllvm-3f081983cc79cdb16a83ac01e2ea04697bd8b892.tar.gz
llvm-3f081983cc79cdb16a83ac01e2ea04697bd8b892.tar.bz2
llvm-3f081983cc79cdb16a83ac01e2ea04697bd8b892.tar.xz
[PM] Fix the analysis templates' usage of IRUnitT.
This is supposed to be the whole type of the IR unit, and so we shouldn't pass a pointer to it but rather the value itself. In turn, we need to provide a 'Module *' as that type argument (for example). This will become more relevant with SCCs or other units which may not be passed as a pointer type, but also brings consistency with the transformation pass templates. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195445 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/IR/PassManagerTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/IR/PassManagerTest.cpp b/unittests/IR/PassManagerTest.cpp
index 94fe99a3aa..d5f5f27b45 100644
--- a/unittests/IR/PassManagerTest.cpp
+++ b/unittests/IR/PassManagerTest.cpp
@@ -21,7 +21,7 @@ namespace {
class TestAnalysisPass {
public:
- typedef Function IRUnitT;
+ typedef Function *IRUnitT;
struct Result {
Result(int Count) : InstructionCount(Count) {}