Skip to content

Commit c20fb84

Browse files
author
Erich Keane
committed
Relax test to be more like it was before, hopefully this will fix the SYCL test
1 parent 45ee132 commit c20fb84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CodeGen/CodeGenModule.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2695,7 +2695,7 @@ void CodeGenModule::EmitGlobal(GlobalDecl GD) {
26952695

26962696
// clang::ParseAST ensures that we emit the SYCL devices at the end, so
26972697
// anything that is a device (or indirectly called) will be handled later.
2698-
if (LangOpts.SYCLIsDevice && Global->hasAttr<SYCLDeviceAttr>()) {
2698+
if (LangOpts.SYCLIsDevice && MustBeEmitted(Global)) {
26992699
addDeferredDeclToEmit(GD);
27002700
return;
27012701
}

0 commit comments

Comments
 (0)