mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
Have 'addFnAttr' take the attribute enum value. Then have it build the attribute object and add it appropriately. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165595 91177308-0d34-0410-b5e6-96231b3b80d8
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