Skip to content

Commit dc451a3

Browse files
NaghasanFznamznon
andauthored
Update clang/lib/Sema/SemaLookup.cpp
Co-authored-by: Mariya Podchishchaeva <[email protected]>
1 parent d14e17f commit dc451a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/SemaLookup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ bool Sema::LookupBuiltin(LookupResult &R) {
910910
FunctionDecl &NewBuiltin) {
911911
if (!this->getLangOpts().CPlusPlus)
912912
NewBuiltin.addAttr(OverloadableAttr::CreateImplicit(Context));
913-
if (this->getLangOpts().SYCL)
913+
if (this->getLangOpts().SYCLIsDevice)
914914
NewBuiltin.addAttr(
915915
SYCLDeviceAttr::CreateImplicit(this->Context));
916916
});

0 commit comments

Comments
 (0)