diff options
| author | Arthur Eubanks <aeubanks@google.com> | 2021-08-13 12:07:05 -0700 |
|---|---|---|
| committer | Arthur Eubanks <aeubanks@google.com> | 2021-08-13 12:16:52 -0700 |
| commit | 8e9ffa1dc6988367c8e3d688044859c5aa7cf485 (patch) | |
| tree | c5b11e1ffe2888cf6ee1fac7a05478d901f146f0 /clang/lib/CodeGen/CodeGenModule.cpp | |
| parent | d7593ebaeeec2072abed73db0299a0e71f5c7a2c (diff) | |
[NFC] Cleanup callers of AttributeList::hasAttributes()
AttributeList::hasAttributes() is confusing, use clearer methods like
hasFnAttrs().
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index fa8312d30ad2..ebd3cc7d7dcc 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -3613,7 +3613,7 @@ llvm::Constant *CodeGenModule::GetOrCreateLLVMFunction( assert(F->getName() == MangledName && "name was uniqued!"); if (D) SetFunctionAttributes(GD, F, IsIncompleteFunction, IsThunk); - if (ExtraAttrs.hasAttributes(llvm::AttributeList::FunctionIndex)) { + if (ExtraAttrs.hasFnAttrs()) { llvm::AttrBuilder B(ExtraAttrs, llvm::AttributeList::FunctionIndex); F->addAttributes(llvm::AttributeList::FunctionIndex, B); } |
