projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3add3e
)
Add 'l' constraint to goto label reference
author
Bill Wendling
<isanbard@gmail.com>
Tue, 25 Feb 2020 19:45:56 +0000
(11:45 -0800)
committer
Bill Wendling
<isanbard@gmail.com>
Tue, 25 Feb 2020 19:48:23 +0000
(11:48 -0800)
A goto label uses the 'l' constraint, skipping it can cause unexpected
warnings.
clang/test/Analysis/uninit-asm-goto.cpp
patch
|
blob
|
history
diff --git
a/clang/test/Analysis/uninit-asm-goto.cpp
b/clang/test/Analysis/uninit-asm-goto.cpp
index ce2ca81d944f4f413e3d0448e1c1eaac72864570..74ef261fb65509c6efcac2a830e5a035a8545e50 100644
(file)
--- a/
clang/test/Analysis/uninit-asm-goto.cpp
+++ b/
clang/test/Analysis/uninit-asm-goto.cpp
@@
-3,7
+3,7
@@
int test1(int x) {
int y;
- asm goto("# %0 %1 %2" : "=r"(y) : "r"(x) : : err);
+ asm goto("# %0 %1 %
l
2" : "=r"(y) : "r"(x) : : err);
return y;
err:
return -1;