forked from OSchip/llvm-project
when making a decl for __builtin_fabsf() make sure to
attach the appropriate attributes to it. I don't think this manifests as any real change though, we're still not getting the right LLVM IR attributes out of codegen. llvm-svn: 92316
This commit is contained in:
parent
30ae06be14
commit
8977c433d3
|
@ -4461,6 +4461,10 @@ void Sema::AddKnownFunctionAttributes(FunctionDecl *FD) {
|
|||
|
||||
if (Context.BuiltinInfo.isNoReturn(BuiltinID))
|
||||
FD->addAttr(::new (Context) NoReturnAttr());
|
||||
if (Context.BuiltinInfo.isNoThrow(BuiltinID))
|
||||
FD->addAttr(::new (Context) NoThrowAttr());
|
||||
if (Context.BuiltinInfo.isConst(BuiltinID))
|
||||
FD->addAttr(::new (Context) ConstAttr());
|
||||
}
|
||||
|
||||
IdentifierInfo *Name = FD->getIdentifier();
|
||||
|
|
Loading…
Reference in New Issue