diff options
| author | Aaron Ballman <aaron@aaronballman.com> | 2013-12-19 02:39:40 +0000 |
|---|---|---|
| committer | Aaron Ballman <aaron@aaronballman.com> | 2013-12-19 02:39:40 +0000 |
| commit | 97915e5a0224e77892b8eed732c341fa940aa700 (patch) | |
| tree | a92145bf671776c4aacccdf669b9e0df8afdbdf3 /lib/CodeGen/TargetInfo.cpp | |
| parent | 051e237a7fd6b0ed4e5b9d1a1e16ef8a3cd5bb14 (diff) | |
| download | clang-97915e5a0224e77892b8eed732c341fa940aa700.tar.gz clang-97915e5a0224e77892b8eed732c341fa940aa700.tar.bz2 clang-97915e5a0224e77892b8eed732c341fa940aa700.tar.xz | |
Replacing calls to getAttr with calls to hasAttr for clarity. No functional change intended -- this only replaces Boolean uses of getAttr.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197648 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TargetInfo.cpp')
| -rw-r--r-- | lib/CodeGen/TargetInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/TargetInfo.cpp b/lib/CodeGen/TargetInfo.cpp index 6b756457e8..f5278c0345 100644 --- a/lib/CodeGen/TargetInfo.cpp +++ b/lib/CodeGen/TargetInfo.cpp @@ -4279,7 +4279,7 @@ SetTargetAttributes(const Decl *D, llvm::GlobalValue *GV, // CUDA __global__ functions get a kernel metadata entry. Since // __global__ functions cannot be called from the device, we do not // need to set the noinline attribute. - if (FD->getAttr<CUDAGlobalAttr>()) + if (FD->hasAttr<CUDAGlobalAttr>()) addKernelMetadata(F); } } |
