commit | c5f397a26f69e96fdf9dc65bef4d76d8c382abd7 | [log] [tgz] |
---|---|---|
author | Reid Spencer <rspencer@reidspencer.com> | Mon Apr 16 07:08:44 2007 +0000 |
committer | Reid Spencer <rspencer@reidspencer.com> | Mon Apr 16 07:08:44 2007 +0000 |
tree | e576cd06928f0880461549a174b8b8b4954d5548 | |
parent | e6a50a1e27e839d47ddaf94dba46ecc4f07d80e6 [diff] [blame] |
Fix test/CodeGen/Generic/vector-constantexpr.ll llvm-svn: 36123
diff --git a/llvm/lib/VMCore/Function.cpp b/llvm/lib/VMCore/Function.cpp index 5176a05..6853173 100644 --- a/llvm/lib/VMCore/Function.cpp +++ b/llvm/lib/VMCore/Function.cpp
@@ -226,6 +226,8 @@ /// unsigned Function::getIntrinsicID(bool noAssert) const { const ValueName *ValName = this->getValueName(); + if (!ValName) + return 0; unsigned Len = ValName->getKeyLength(); const char *Name = ValName->getKeyData();