commit | eb351eb84945c64212b5e8582c09394542a7cc69 | [log] [tgz] |
---|---|---|
author | Richard Smith <richard-llvm@metafoo.co.uk> | Thu May 16 04:12:04 2013 +0000 |
committer | Richard Smith <richard-llvm@metafoo.co.uk> | Thu May 16 04:12:04 2013 +0000 |
tree | 32d7a03e84bc7169ebdb69635efe75c300a006b1 | |
parent | 0225d5a3aff17fe6e747821973aa4dc0b8f6d6a9 [diff] [blame] |
Respect the 'nobuiltin' attribute when determining if a call is to a memory builtin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181978 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Analysis/MemoryBuiltins.cpp b/lib/Analysis/MemoryBuiltins.cpp index 9c0d8ac..1660347 100644 --- a/lib/Analysis/MemoryBuiltins.cpp +++ b/lib/Analysis/MemoryBuiltins.cpp
@@ -77,6 +77,9 @@ if (!CS.getInstruction()) return 0; + if (CS.hasFnAttr(Attribute::NoBuiltin)) + return 0; + Function *Callee = CS.getCalledFunction(); if (!Callee || !Callee->isDeclaration()) return 0;