[PlaceSafepoints] Assert that the gc.safepoint_poll function is present in the module.
authorManuel Jacob <me@manueljacob.de>
Tue, 29 Dec 2015 21:57:55 +0000 (21:57 +0000)
committerManuel Jacob <me@manueljacob.de>
Tue, 29 Dec 2015 21:57:55 +0000 (21:57 +0000)
commitdf4a54ad91f3493a4009b7850a8a2da392c5f6c1
treed14db13c9e03f9128c920b672b841cbb54194c6e
parent733af2eb654c1bf8482b40f8ddfa0511872ca984
[PlaceSafepoints] Assert that the gc.safepoint_poll function is present in the module.

If running the PlaceSafepoints pass on a module which doesn't have the
gc.safepoint_poll function without disabling entry and backedge safepoints,
previously the pass crashed with an obscure error because of a null pointer.
Now it fails the assert instead.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256580 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/PlaceSafepoints.cpp