Skip to content

Commit

Permalink
Add 'l' constraint to goto label reference
Browse files Browse the repository at this point in the history
A goto label uses the 'l' constraint, skipping it can cause unexpected
warnings.
  • Loading branch information
isanbard committed Feb 25, 2020
1 parent e3add3e commit e11f9fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/test/Analysis/uninit-asm-goto.cpp
Expand Up @@ -3,7 +3,7 @@

int test1(int x) {
int y;
asm goto("# %0 %1 %2" : "=r"(y) : "r"(x) : : err);
asm goto("# %0 %1 %l2" : "=r"(y) : "r"(x) : : err);
return y;
err:
return -1;
Expand Down

0 comments on commit e11f9fb

Please sign in to comment.