Commit 3a9e87d7 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Merge pull request #382 from rntz/master

don't assert() if python errors inside of a CFGVisitor's RAII scope
parents 7e26d109 129d103f
...@@ -74,8 +74,10 @@ public: ...@@ -74,8 +74,10 @@ public:
} }
~CFGVisitor() { ~CFGVisitor() {
assert(regions.size() == 0); // if we're being destroyed due to an exception, our internal invariants may be violated, but that's okay; the
assert(exc_handlers.size() == 0); // CFG isn't going to get used anyway. (Maybe we should check that it won't be used somehow?)
assert(regions.size() == 0 || std::uncaught_exception());
assert(exc_handlers.size() == 0 || std::uncaught_exception());
} }
private: private:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment