diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-10-09 09:11:20 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-10-09 09:11:20 +0000 |
commit | 2e879bcd52583335c753c005d203bf2ffe8b67b5 (patch) | |
tree | 519df78db10304e80747bbaecab158bc53664152 /lib/Transforms/IPO/PruneEH.cpp | |
parent | e97a3a4b4fccbe6283b616af93ab0117d3a7fee9 (diff) |
Use the enum value of the attributes when adding them to the attributes builder.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165494 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/PruneEH.cpp')
-rw-r--r-- | lib/Transforms/IPO/PruneEH.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/IPO/PruneEH.cpp b/lib/Transforms/IPO/PruneEH.cpp index 8ebf6ee1dd..3e598abfcf 100644 --- a/lib/Transforms/IPO/PruneEH.cpp +++ b/lib/Transforms/IPO/PruneEH.cpp @@ -140,9 +140,9 @@ bool PruneEH::runOnSCC(CallGraphSCC &SCC) { Attributes::Builder NewAttributes; if (!SCCMightUnwind) - NewAttributes.addNoUnwindAttr(); + NewAttributes.addAttribute(Attributes::NoUnwind); if (!SCCMightReturn) - NewAttributes.addNoReturnAttr(); + NewAttributes.addAttribute(Attributes::NoReturn); Function *F = (*I)->getFunction(); const AttrListPtr &PAL = F->getAttributes(); |