Prefer llvm::Function::addFnAttr(...) to F->addAttribute(~0, ...).
llvm-svn: 56753
This commit is contained in:
parent
274ff37583
commit
aec553bfdb
|
@ -240,7 +240,7 @@ void CodeGenModule::SetFunctionAttributesForDefinition(const Decl *D,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!Features.Exceptions)
|
if (!Features.Exceptions)
|
||||||
F->addAttribute(~0, llvm::Attribute::NoUnwind);
|
F->addFnAttr(llvm::Attribute::NoUnwind);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CodeGenModule::SetMethodAttributes(const ObjCMethodDecl *MD,
|
void CodeGenModule::SetMethodAttributes(const ObjCMethodDecl *MD,
|
||||||
|
|
Loading…
Reference in New Issue