projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7780acb
)
Fix test/CodeGen/Generic/vector-constantexpr.ll
author
Reid Spencer
<rspencer@reidspencer.com>
Mon, 16 Apr 2007 07:08:44 +0000
(07:08 +0000)
committer
Reid Spencer
<rspencer@reidspencer.com>
Mon, 16 Apr 2007 07:08:44 +0000
(07:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36123
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/Function.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Function.cpp
b/lib/VMCore/Function.cpp
index 5176a05d760c296e96bcad4e241bb89514a454f2..68531739f6feddd74540caa4e5cecdfa8774a180 100644
(file)
--- 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();