Attributes Rewrite
Convert the uses of the Attributes class over to the new format. The Attributes::get method call now takes an LLVM context so that the attributes object can be uniquified and stored. llvm-svn: 165918
This commit is contained in:
@@ -646,7 +646,8 @@ void CodeGenModule::SetFunctionAttributes(GlobalDecl GD,
|
||||
if (unsigned IID = F->getIntrinsicID()) {
|
||||
// If this is an intrinsic function, set the function's attributes
|
||||
// to the intrinsic's attributes.
|
||||
F->setAttributes(llvm::Intrinsic::getAttributes((llvm::Intrinsic::ID)IID));
|
||||
F->setAttributes(llvm::Intrinsic::getAttributes(getLLVMContext(),
|
||||
(llvm::Intrinsic::ID)IID));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user