]> granicus.if.org Git - llvm/commit
[Attributor][FIX] Avoid modifying naked/optnone functions
authorJohannes Doerfert <jdoerfert@anl.gov>
Sun, 13 Oct 2019 02:24:02 +0000 (02:24 +0000)
committerJohannes Doerfert <jdoerfert@anl.gov>
Sun, 13 Oct 2019 02:24:02 +0000 (02:24 +0000)
commite6b56b94e2b825204c3e3b76b4fef578964cab03
treec27f38b8d7817223dd5c1673bd91473e0b81e23d
parentde0069a2f4de1cf92e309a0b42364848eecde582
[Attributor][FIX] Avoid modifying naked/optnone functions

The check for naked/optnone was insufficient for different reasons. We
now check before we initialize an abstract attribute and we do it for
all abstract attributes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374694 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/IPO/Attributor.h
lib/Transforms/IPO/Attributor.cpp
test/Transforms/FunctionAttrs/nonnull.ll