[Sema] Fix assertion hit with #pragma weak.

rdar://16264844