Bug fix.

Fixed assertion failure caused by calling getEntryBlock() on an extern function.