Fix crash in VerifyType when checking Contexts. Because there may not be a
commit5bbd0648c41e642124a75bad44b685c1423e73e7
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
parent1e966d23e39c98395918808c74b2d63df616b27c
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