[PATCH] D56571: [RFC prototype] Implementation of asm-goto support in clang
Eli Friedman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 4 13:13:19 PST 2019
efriedma added inline comments.
================
Comment at: lib/Sema/JumpDiagnostics.cpp:347
+ LabelAndGotoScopes[S] = ParentScope;
+ Jumps.push_back(S);
+ }
----------------
This doesn't look right; I think we need to add it to IndirectJumps instead. This probably impacts a testcase like the following:
```
struct S { ~S(); };
int f() {
{
S s;
asm goto(""::::BAR);
return 1;
}
BAR:
return 0;
}
```
(gcc currently accepts this and skips running the destructor, but I'm pretty sure that's a bug.)
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D56571/new/
https://reviews.llvm.org/D56571
More information about the cfe-commits
mailing list