Regenerate.

llvm-svn: 36156
This commit is contained in:
Reid Spencer 2007-04-16 20:35:38 +00:00
parent d36a46527a
commit 162b270bd1
2 changed files with 6 additions and 6 deletions

View File

@ -5488,9 +5488,9 @@ yyreduce:
// Check for call to invalid intrinsic to avoid crashing later.
if (Function *theF = dyn_cast<Function>(V)) {
if (theF->hasName() &&
0 == strncmp(theF->getValueName()->getKeyData(), "llvm.", 5) &&
!theF->getIntrinsicID(true))
if (theF->hasName() && (strlen(theF->getValueName()->getKeyData()) >= 5)&&
(0 == strncmp(theF->getValueName()->getKeyData(), "llvm.", 5)) &&
!theF->getIntrinsicID(true))
GEN_ERROR("Call to invalid LLVM intrinsic function '" +
theF->getName() + "'");
}

View File

@ -2823,9 +2823,9 @@ InstVal : ArithmeticOps Types ValueRef ',' ValueRef {
// Check for call to invalid intrinsic to avoid crashing later.
if (Function *theF = dyn_cast<Function>(V)) {
if (theF->hasName() &&
0 == strncmp(theF->getValueName()->getKeyData(), "llvm.", 5) &&
!theF->getIntrinsicID(true))
if (theF->hasName() && (strlen(theF->getValueName()->getKeyData()) >= 5)&&
(0 == strncmp(theF->getValueName()->getKeyData(), "llvm.", 5)) &&
!theF->getIntrinsicID(true))
GEN_ERROR("Call to invalid LLVM intrinsic function '" +
theF->getName() + "'");
}