diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-06-17 12:55:48 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-06-17 12:55:48 -0700 |
commit | e59feda245e469059f10d84b60c29790385022bf (patch) | |
tree | 1823b7ee331965b864ac1497f2c8aed29aac4c18 | |
parent | 697408d658f185991521946a3a68c8f2ce5d108d (diff) |
assert on Root being non-NULL in the relooper
-rw-r--r-- | src/relooper/Relooper.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/relooper/Relooper.cpp b/src/relooper/Relooper.cpp index 8a6e18b8..7ceeb2f8 100644 --- a/src/relooper/Relooper.cpp +++ b/src/relooper/Relooper.cpp @@ -897,6 +897,7 @@ void Relooper::Calculate(Block *Entry) { BlockSet Entries; Entries.insert(Entry); Root = Analyzer(this).Process(AllBlocks, Entries, NULL); + assert(Root); // Post optimizations @@ -1091,6 +1092,7 @@ void Relooper::Calculate(Block *Entry) { void Relooper::Render() { OutputBuffer = OutputBufferRoot; + assert(Root); Root->Render(false); } |