aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/PrettyStackTrace.cpp
diff options
context:
space:
mode:
authorJustin Lebar <jlebar@google.com>2016-09-30 19:55:55 +0000
committerJustin Lebar <jlebar@google.com>2016-09-30 19:55:55 +0000
commite46ea72d97e55039ff5a71ff50a154d8de28440b (patch)
treeacbf49512f54fa139b91929c607608ac1ff12cae /llvm/lib/Support/PrettyStackTrace.cpp
parent0139a5dcac495147cd11f7f2cba43398b3af122e (diff)
downloadllvm-e46ea72d97e55039ff5a71ff50a154d8de28440b.zip
llvm-e46ea72d97e55039ff5a71ff50a154d8de28440b.tar.gz
llvm-e46ea72d97e55039ff5a71ff50a154d8de28440b.tar.bz2
[CUDA] Emit a warning if a CUDA host/device/global attribute is placed after '(...)'.
Summary: This is probably the sane place for the attribute to go, but nvcc specifically rejects it. Other GNU-style attributes are allowed in this position (although judging from the warning it emits for host/device/global, those attributes are applied to the lambda's anonymous struct, not to the function itself). It would be nice to have a FixIt message here, but doing so, or even just getting the correct range for the attribute, including its '((' and '))'s, is apparently Hard. Reviewers: rnk Subscribers: cfe-commits, tra Differential Revision: https://reviews.llvm.org/D25115 llvm-svn: 282911
Diffstat (limited to 'llvm/lib/Support/PrettyStackTrace.cpp')
0 files changed, 0 insertions, 0 deletions