mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-27 15:57:13 +00:00
Regenerate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36156 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
43e607303b
commit
36fdde18c3
@ -5488,9 +5488,9 @@ yyreduce:
|
|||||||
|
|
||||||
// Check for call to invalid intrinsic to avoid crashing later.
|
// Check for call to invalid intrinsic to avoid crashing later.
|
||||||
if (Function *theF = dyn_cast<Function>(V)) {
|
if (Function *theF = dyn_cast<Function>(V)) {
|
||||||
if (theF->hasName() &&
|
if (theF->hasName() && (strlen(theF->getValueName()->getKeyData()) >= 5)&&
|
||||||
0 == strncmp(theF->getValueName()->getKeyData(), "llvm.", 5) &&
|
(0 == strncmp(theF->getValueName()->getKeyData(), "llvm.", 5)) &&
|
||||||
!theF->getIntrinsicID(true))
|
!theF->getIntrinsicID(true))
|
||||||
GEN_ERROR("Call to invalid LLVM intrinsic function '" +
|
GEN_ERROR("Call to invalid LLVM intrinsic function '" +
|
||||||
theF->getName() + "'");
|
theF->getName() + "'");
|
||||||
}
|
}
|
||||||
|
@ -2823,9 +2823,9 @@ InstVal : ArithmeticOps Types ValueRef ',' ValueRef {
|
|||||||
|
|
||||||
// Check for call to invalid intrinsic to avoid crashing later.
|
// Check for call to invalid intrinsic to avoid crashing later.
|
||||||
if (Function *theF = dyn_cast<Function>(V)) {
|
if (Function *theF = dyn_cast<Function>(V)) {
|
||||||
if (theF->hasName() &&
|
if (theF->hasName() && (strlen(theF->getValueName()->getKeyData()) >= 5)&&
|
||||||
0 == strncmp(theF->getValueName()->getKeyData(), "llvm.", 5) &&
|
(0 == strncmp(theF->getValueName()->getKeyData(), "llvm.", 5)) &&
|
||||||
!theF->getIntrinsicID(true))
|
!theF->getIntrinsicID(true))
|
||||||
GEN_ERROR("Call to invalid LLVM intrinsic function '" +
|
GEN_ERROR("Call to invalid LLVM intrinsic function '" +
|
||||||
theF->getName() + "'");
|
theF->getName() + "'");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user