diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-04-16 07:08:44 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-04-16 07:08:44 +0000 |
commit | 085659f040f8b943c931db8a695dec4bf22578a5 (patch) | |
tree | b542eb3e802ab241d2af6a6b601cc3fcae832af5 /lib/VMCore/Function.cpp | |
parent | 7780acb76a23266fec3e07157555400924714ebb (diff) |
Fix test/CodeGen/Generic/vector-constantexpr.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36123 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Function.cpp')
-rw-r--r-- | lib/VMCore/Function.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp index 5176a05d76..68531739f6 100644 --- a/lib/VMCore/Function.cpp +++ b/lib/VMCore/Function.cpp @@ -226,6 +226,8 @@ void Function::dropAllReferences() { /// unsigned Function::getIntrinsicID(bool noAssert) const { const ValueName *ValName = this->getValueName(); + if (!ValName) + return 0; unsigned Len = ValName->getKeyLength(); const char *Name = ValName->getKeyData(); |