This is an archive of the discontinued LLVM Phabricator instance.

[WinEH] Verify catchswitch handlers
ClosedPublic

Authored by JosephTremoulet on Jan 1 2016, 5:27 PM.

Details

Summary

The handler list must be nonempty and consist solely of CatchPads.

Diff Detail

Event Timeline

JosephTremoulet retitled this revision from to [WinEH] Verify catchswitch handlers.
JosephTremoulet updated this object.
JosephTremoulet added a subscriber: llvm-commits.
majnemer accepted this revision.Jan 1 2016, 11:18 PM
majnemer edited edge metadata.

LGTM

lib/IR/Verifier.cpp
3082

Might be good to have it as CatchSwitch.getNumHandlers() != 0 to make it more explicit. Either way works for me.

This revision is now accepted and ready to land.Jan 1 2016, 11:18 PM
JosephTremoulet edited edge metadata.

address feedback