diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-09-07 00:25:48 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-09-07 00:25:48 +0000 |
commit | d9e5ff24e6e209d614d77e611917fed9e80bd711 (patch) | |
tree | 9ab017557183a384f8b3279e8d10e1e87b000920 /llvm/lib | |
parent | 6a3fe57444029e0e3348b642c6053fe9b9f529f5 (diff) | |
download | bcm5719-llvm-d9e5ff24e6e209d614d77e611917fed9e80bd711.tar.gz bcm5719-llvm-d9e5ff24e6e209d614d77e611917fed9e80bd711.zip |
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.
llvm-svn: 190233
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/IR/Verifier.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp index 3d296405b18..64b7aaa9a75 100644 --- a/llvm/lib/IR/Verifier.cpp +++ b/llvm/lib/IR/Verifier.cpp @@ -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); } |