This is an archive of the discontinued LLVM Phabricator instance.

[CUDA] Emit errors for wrong-side calls made on the same line as non-wrong-side calls.
ClosedPublic

Authored by jlebar on Oct 17 2016, 3:02 PM.

Details

Summary

This fixes two related bugs:

  1. Previously, if you had a non-wrong side call at some source code

location L, we wouldn't emit errors for wrong-side calls that appeared
at L.

  1. We'd only emit one wrong-side error per source code location, when we

actually want to emit it twice if we hit this line more than once due to
e.g. template instantiation.

Diff Detail

Repository
rL LLVM

Event Timeline

jlebar updated this revision to Diff 74910.Oct 17 2016, 3:02 PM
jlebar retitled this revision from to [CUDA] Emit errors for wrong-side calls made on the same line as non-wrong-side calls..
jlebar updated this object.
jlebar added a reviewer: tra.
jlebar added subscribers: cfe-commits, rnk.
rnk accepted this revision.Oct 19 2016, 9:27 AM
rnk added a reviewer: rnk.

lgtm

I'm assuming you're going to follow this up with CanonicalDeclPtr usage.

This revision is now accepted and ready to land.Oct 19 2016, 9:27 AM
In D25702#574289, @rnk wrote:

lgtm

I'm assuming you're going to follow this up with CanonicalDeclPtr usage.

Yes, that's in D25704.

This revision was automatically updated to reflect the committed changes.