diff options
| author | David Greene <greened@obbligato.org> | 2010-05-10 20:24:27 +0000 |
|---|---|---|
| committer | David Greene <greened@obbligato.org> | 2010-05-10 20:24:27 +0000 |
| commit | 103d4b43e9c19baab8db0388f72aa86bf013ec9e (patch) | |
| tree | 4a0c1c429772abffeb88e69f195245ec6599df52 /clang/lib | |
| parent | fd9048b5107b4ba9a593db69919123481a27bb6c (diff) | |
| download | bcm5719-llvm-103d4b43e9c19baab8db0388f72aa86bf013ec9e.tar.gz bcm5719-llvm-103d4b43e9c19baab8db0388f72aa86bf013ec9e.zip | |
Fix PR6875:
This includes a patch by Roman Divacky to fix the initial crash.
Move the actual addition of passes from *PassManager::add to
*PassManager::addImpl. That way, when adding printer passes we won't
recurse infinitely.
Finally, check to make sure that we are actually adding a FunctionPass
to a FunctionPassManager before doing a print before or after it.
Immutable passes are strange in this way because they aren't
FunctionPasses yet they can be and are added to the FunctionPassManager.
llvm-svn: 103425
Diffstat (limited to 'clang/lib')
0 files changed, 0 insertions, 0 deletions

