mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Remove verifier check that attribute 'builtin' is only applied to calls to
functions marked 'nobuiltin'. That approach doesn't play well with LTO, and there's no harm in marking a call as 'builtin' if it was going to be a builtin regardless. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190233 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1553,14 +1553,6 @@ void Verifier::VerifyCallSite(CallSite CS) {
|
||||
"Function has metadata parameter but isn't an intrinsic", I);
|
||||
}
|
||||
|
||||
// If the call site has the 'builtin' attribute, verify that it's applied to a
|
||||
// direct call to a function with the 'nobuiltin' attribute.
|
||||
if (CS.hasFnAttr(Attribute::Builtin))
|
||||
Assert1(CS.getCalledFunction() &&
|
||||
CS.getCalledFunction()->hasFnAttribute(Attribute::NoBuiltin),
|
||||
"Attribute 'builtin' can only be used in a call to a function with "
|
||||
"the 'nobuiltin' attribute.", I);
|
||||
|
||||
visitInstruction(*I);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user