Have 'addFnAttr' take the attribute enum value. Then have it build the attribute object and add it appropriately. No functionality change.
llvm-svn: 165595
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user