yaxunl marked an inline comment as done. yaxunl added inline comments.
================ Comment at: clang/lib/AST/ASTContext.cpp:11770-11778 + if (!LangOpts.CUDA || LangOpts.CUDAIsDevice) { + assert(!ForAuxTarget && "Only CUDA/HIP host compilation supports mangling " + "number for aux target"); return Res; + } // CUDA/HIP host compilation encodes host and device mangling numbers ---------------- tra wrote: > Nit: I'd rephrase it as : > ``` > if (LangOpts.CUDA && !LangOpts.CUDAIsDevice) { > Res = ForAuxTarget ? Res >> 16 : Res & 0xFFFF; > } else { > assert(!ForAuxTarget && "Only CUDA/HIP host compilation supports mangling > number for aux target"); > } > return Res > 1 ? Res : 1; > ``` will do when committing. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D124842/new/ https://reviews.llvm.org/D124842 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits