Fix crash in VerifyType when checking Contexts. Because there may not be a
commit6e5a2bd0322c285f91d28b19d191110323e0e5ba
authorNick Lewycky <nicholas@mxc.ca>
Mon, 15 Feb 2010 21:52:04 +0000 (15 21:52 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Mon, 15 Feb 2010 21:52:04 +0000 (15 21:52 +0000)
treeee8772a60e70a754325129af158fb38412d2fbd3
parentc638088d6f2739f2766801542e81d300e4f59f8f
Fix crash in VerifyType when checking Contexts. Because there may not be a
Module (we were called with verifyFunction and an unowned Function) we can't
rely on Mod->getContext().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96275 91177308-0d34-0410-b5e6-96231b3b80d8
lib/VMCore/Verifier.cpp