We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0fd701 commit 4c422a8Copy full SHA for 4c422a8
clang/lib/CodeGen/CodeGenModule.cpp
@@ -4604,8 +4604,11 @@ void CodeGenModule::EmitGlobal(GlobalDecl GD) {
4604
// handle it now.
4605
if (AliasAttr *Attr = Global->getAttr<AliasAttr>()) {
4606
// Emit the alias here if it is not SYCL device compilation.
4607
- if (!LangOpts.SYCLIsDevice)
+ if (!LangOpts.SYCLIsDevice) {
4608
+ if (shouldSkipAliasEmission(*this, Global))
4609
+ return;
4610
return EmitAliasDefinition(GD);
4611
+ }
4612
// Defer for SYCL devices, until either the alias or what it aliases
4613
// is used.
4614
StringRef MangledName = getMangledName(GD);
0 commit comments