Skip to content

Commit 4c422a8

Browse files
committed
Fix for CMPLRLLVM-71955
1 parent a0fd701 commit 4c422a8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

clang/lib/CodeGen/CodeGenModule.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4604,8 +4604,11 @@ void CodeGenModule::EmitGlobal(GlobalDecl GD) {
46044604
// handle it now.
46054605
if (AliasAttr *Attr = Global->getAttr<AliasAttr>()) {
46064606
// Emit the alias here if it is not SYCL device compilation.
4607-
if (!LangOpts.SYCLIsDevice)
4607+
if (!LangOpts.SYCLIsDevice) {
4608+
if (shouldSkipAliasEmission(*this, Global))
4609+
return;
46084610
return EmitAliasDefinition(GD);
4611+
}
46094612
// Defer for SYCL devices, until either the alias or what it aliases
46104613
// is used.
46114614
StringRef MangledName = getMangledName(GD);

0 commit comments

Comments
 (0)