aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/PDB/Raw/ModStream.cpp
diff options
context:
space:
mode:
authorJustin Lebar <jlebar@google.com>2016-10-08 01:07:11 +0000
committerJustin Lebar <jlebar@google.com>2016-10-08 01:07:11 +0000
commit9fdb46e71c6f91ccbbbd607830da62352dfd14cc (patch)
tree4fdd7a53fcda028b42c0b1e88e7c4f57b958e6f6 /llvm/lib/DebugInfo/PDB/Raw/ModStream.cpp
parenta1a944e3cbb3a04f95ffdf1acebf00d60384b5cc (diff)
downloadllvm-9fdb46e71c6f91ccbbbd607830da62352dfd14cc.zip
llvm-9fdb46e71c6f91ccbbbd607830da62352dfd14cc.tar.gz
llvm-9fdb46e71c6f91ccbbbd607830da62352dfd14cc.tar.bz2
[CUDA] Do a better job at detecting wrong-side calls.
Summary: Move CheckCUDACall from ActOnCallExpr and BuildDeclRefExpr to DiagnoseUseOfDecl. This lets us catch some edge cases we were missing, specifically around class operators. This necessitates a few other changes: - Avoid emitting duplicate deferred diags in CheckCUDACall. Previously we'd carefully placed our call to CheckCUDACall such that it would only ever run once for a particular callsite. But now this isn't the case. - Emit deferred diagnostics from a template specialization/instantiation's primary template, in addition to from the specialization/instantiation itself. DiagnoseUseOfDecl ends up putting the deferred diagnostics on the template, rather than the specialization, so we need to check both. Reviewers: rsmith Subscribers: cfe-commits, tra Differential Revision: https://reviews.llvm.org/D24573 llvm-svn: 283637
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Raw/ModStream.cpp')
0 files changed, 0 insertions, 0 deletions