commit | b251a7588a5447aa29263fe8c0a6435ef805e820 | [log] [tgz] |
---|---|---|
author | Justin Bogner <mail@justinbogner.com> | Fri Aug 18 21:38:03 2017 +0000 |
committer | Justin Bogner <mail@justinbogner.com> | Fri Aug 18 21:38:03 2017 +0000 |
tree | ee391de4af811a48773235978dc7e7777ed97648 | |
parent | 15ccbc58e59c50baf1e5f611373f69c9c267b86c [diff] |
IR: Make stripDebugInfo robust against (invalid) empty basic blocks Since stripDebugInfo runs before the verifier when reading IR, we can end up in a situation where we read some invalid IR but don't know its invalid yet. Before this patch we would crash in stripDebugInfo when given IR with a completely empty basic block, and after we get a nice error from the verifier instead. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311202 91177308-0d34-0410-b5e6-96231b3b80d8