forked from OSchip/llvm-project
[NFC] addAttribute(FunctionIndex) => addFnAttribute()
This commit is contained in:
parent
af8e09d4bb
commit
644f88a25b
|
@ -5246,9 +5246,7 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo &CallInfo,
|
|||
if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(CurFuncDecl))
|
||||
if (FD->hasAttr<StrictFPAttr>())
|
||||
// All calls within a strictfp function are marked strictfp
|
||||
Attrs =
|
||||
Attrs.addAttribute(getLLVMContext(), llvm::AttributeList::FunctionIndex,
|
||||
llvm::Attribute::StrictFP);
|
||||
Attrs = Attrs.addFnAttribute(getLLVMContext(), llvm::Attribute::StrictFP);
|
||||
|
||||
AssumeAlignedAttrEmitter AssumeAlignedAttrEmitter(*this, TargetDecl);
|
||||
Attrs = AssumeAlignedAttrEmitter.TryEmitAsCallSiteAttribute(Attrs);
|
||||
|
|
Loading…
Reference in New Issue