Skip to content

Commit c8a778b

Browse files
Fix check for non-sycl devices
1 parent 086f779 commit c8a778b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CodeGen/CGCall.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5018,7 +5018,7 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo &CallInfo,
50185018
}
50195019
}
50205020
// Emit unreachable only for non-sycl devices
5021-
if (getTarget().getTriple().getSubArch() != getLangOpts().SYCLIsDevice)
5021+
if (!getLangOpts().SYCLIsDevice)
50225022
EmitUnreachable(Loc);
50235023
Builder.ClearInsertionPoint();
50245024

0 commit comments

Comments
 (0)