mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 16:17:17 +00:00
Reapply 63765. Patches for clang and llvm-gcc to follow.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63812 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2949,15 +2949,6 @@ bool LLParser::ParseCall(Instruction *&Inst, PerFunctionState &PFS,
|
||||
Value *Callee;
|
||||
if (ConvertValIDToValue(PFTy, CalleeID, Callee, PFS)) return true;
|
||||
|
||||
// Check for call to invalid intrinsic to avoid crashing later.
|
||||
if (Function *F = dyn_cast<Function>(Callee)) {
|
||||
if (F->hasName() && F->getNameLen() >= 5 &&
|
||||
!strncmp(F->getValueName()->getKeyData(), "llvm.", 5) &&
|
||||
!F->getIntrinsicID(true))
|
||||
return Error(CallLoc, "Call to invalid LLVM intrinsic function '" +
|
||||
F->getNameStr() + "'");
|
||||
}
|
||||
|
||||
// FIXME: In LLVM 3.0, stop accepting zext, sext and inreg as optional
|
||||
// function attributes.
|
||||
unsigned ObsoleteFuncAttrs = Attribute::ZExt|Attribute::SExt|Attribute::InReg;
|
||||
|
Reference in New Issue
Block a user