Skip to content

Commit 2ee0e64

Browse files
committed
[Clang] Fix conflict resolution use return instead of break
To avoid causing unexpected failures clang/test/CodeGenSYCL/native_cpu_mangling.cpp:15:73: error: cannot mangle this calling convention yet
1 parent cf4e0b4 commit 2ee0e64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/AST/MicrosoftMangle.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3092,7 +3092,7 @@ void MicrosoftCXXNameMangler::mangleCallingConvention(CallingConv CC,
30923092
// Currently we only allow this convention in
30933093
// SYCLNativeCPU and raise the usual error otherwise.
30943094
llvm_unreachable("Unsupported CC for mangling");
3095-
break;
3095+
return;
30963096
}
30973097

30983098
DiagnosticsEngine &Diags = Context.getDiags();

0 commit comments

Comments
 (0)