summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/CodeExtractor.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-10-10 03:12:49 +0000
committerBill Wendling <isanbard@gmail.com>2012-10-10 03:12:49 +0000
commitf319e9905fbddc2cf83a9c82734f4591a6ba8d89 (patch)
tree63fd8d10af8d7d3aeebb909aff5b513211de47ec /llvm/lib/Transforms/Utils/CodeExtractor.cpp
parent38b25bab29a4c9e1be56d7e233d82b36e7a89fae (diff)
downloadbcm5719-llvm-f319e9905fbddc2cf83a9c82734f4591a6ba8d89.tar.gz
bcm5719-llvm-f319e9905fbddc2cf83a9c82734f4591a6ba8d89.zip
Have 'addFnAttr' take the attribute enum value. Then have it build the attribute object and add it appropriately. No functionality change.
llvm-svn: 165595
Diffstat (limited to 'llvm/lib/Transforms/Utils/CodeExtractor.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/CodeExtractor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/CodeExtractor.cpp b/llvm/lib/Transforms/Utils/CodeExtractor.cpp
index c545cd68c98..281714f4c10 100644
--- a/llvm/lib/Transforms/Utils/CodeExtractor.cpp
+++ b/llvm/lib/Transforms/Utils/CodeExtractor.cpp
@@ -346,7 +346,7 @@ Function *CodeExtractor::constructFunction(const ValueSet &inputs,
header->getName(), M);
// If the old function is no-throw, so is the new one.
if (oldFunction->doesNotThrow())
- newFunction->setDoesNotThrow(true);
+ newFunction->setDoesNotThrow();
newFunction->getBasicBlockList().push_back(newRootNode);
OpenPOWER on IntegriCloud