forked from OpenCilk/opencilk-project
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only pop a cleanup scope in ~TaskFrameScope if one was pushed in Task…
…FrameScope.
- Loading branch information
1 parent
66a8741
commit 082303a
Showing
2 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// RUN: %clang_cc1 -triple x86_64-apple-macosx14.0.0 -emit-llvm -S -fopencilk -disable-llvm-passes -fcxx-exceptions -fexceptions -x c++ %s -o /dev/null | ||
// expected-no-diagnostics | ||
// Bug 266: unnecessary sync in catch block crashes compiler | ||
|
||
extern int f(); | ||
|
||
// Nothing really to check here. If it compiles, great. | ||
void try_catch() { | ||
try { | ||
f(); | ||
} catch (int x) { | ||
_Cilk_sync; | ||
} | ||
} | ||
|