[PATCH] D47694: [CUDA][HIP] Do not emit type info when compiling for device

John McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 4 15:37:57 PDT 2018


rjmccall added a comment.

Oh, I see, because you're worried that the host code might contain `dynamic_cast` or similar features which would complain if RTTI were disabled.

`getLangOpts().CUDAIsDevice` implies `getLangOpts().CUDA`, so I think you can just check the former.  Otherwise LGTM.


https://reviews.llvm.org/D47694





More information about the cfe-commits mailing list