diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2013-11-22 11:34:43 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2013-11-22 11:34:43 +0000 |
commit | 5bf5e31c5aff9c687193bef371a5e2a58e3010d7 (patch) | |
tree | 1cf4435a5b5c46ccc15f4021f831191ebbb1040a /llvm/unittests/IR/PassManagerTest.cpp | |
parent | fd8e416879bd204c6c0d52efb4b04d3ac1213632 (diff) | |
download | bcm5719-llvm-5bf5e31c5aff9c687193bef371a5e2a58e3010d7.tar.gz bcm5719-llvm-5bf5e31c5aff9c687193bef371a5e2a58e3010d7.zip |
[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.
llvm-svn: 195445
Diffstat (limited to 'llvm/unittests/IR/PassManagerTest.cpp')
-rw-r--r-- | llvm/unittests/IR/PassManagerTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/IR/PassManagerTest.cpp b/llvm/unittests/IR/PassManagerTest.cpp index 94fe99a3aa0..d5f5f27b452 100644 --- a/llvm/unittests/IR/PassManagerTest.cpp +++ b/llvm/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) {} |