Got segfault on dereferencing nullptr since getTerminator() returned not a BranchInst but a SwitchInst.
Was found in our OpenCL compiler with HSAIL BE, was not able to create regression test for vanilla llvm (
Fixed other similar places in the file.
Details
Details
- Reviewers
tstellar
Diff Detail
Diff Detail
Event Timeline
Comment Actions
adding Matt to cc.
the change looks OK to me, although I've never worked with flattencfg.
If the segfault was generated by legal LLVM IR, it should be easy to just add it to 'test/Transforms/Util/flattencfg.ll'