Windows EH funclets need to be contiguous.  The FuncletLayout pass will
ensure that the funclets are together and begin with a funclet entry MBB.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
lgtm
| lib/CodeGen/FuncletLayout.cpp | ||
|---|---|---|
| 69 ↗ | (On Diff #35030) | You can do: if (!F.getMMI().hasEHFunclets()) return false; | 
| 72 ↗ | (On Diff #35030) | MBB.isEHFuncletEntry() | 
| 76 ↗ | (On Diff #35030) | Now you can assert !empty | 
| test/CodeGen/X86/funclet-layout.ll | ||
| 31 ↗ | (On Diff #35030) | s/is contains/contains/ | 
| 32 ↗ | (On Diff #35030) | Maybe throw in CHECK-LABEL: _f: | 
| 34 ↗ | (On Diff #35030) | CHECK: retl | 
| 35 ↗ | (On Diff #35030) | ditto |