Guest User

Untitled

a guest
Jan 22nd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. bool SPDataDependence::runOnModule(Module &M) {
  2.  
  3. for (Module::iterator it = M.begin(), end = M.end(); it != end; ++it) {
  4. Function& F = *it;
  5.  
  6. if (!F.isDeclaration()) {
  7. LoopInfo &LI = getAnalysis<LoopInfo>(F);
  8. for(LoopInfo::iterator it = LI.begin(), end = LI.end(); it != end; ++it) {
  9. Loop* L = *it;
  10. //Next Line deletes L !!!!
  11. DominatorTree& dom = getAnalysis<DominatorTree>(F);
  12. L->dump(); //Crash here.
  13. }
  14. }
  15. }
  16.  
  17. return false;
  18. }
Add Comment
Please, Sign In to add comment