[clang] e11f9fb - Add 'l' constraint to goto label reference
Bill Wendling via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 25 11:48:35 PST 2020
Author: Bill Wendling
Date: 2020-02-25T11:48:23-08:00
New Revision: e11f9fb4508534d31b09d2ba6cd22428ccc75f65
URL: https://github.com/llvm/llvm-project/commit/e11f9fb4508534d31b09d2ba6cd22428ccc75f65
DIFF: https://github.com/llvm/llvm-project/commit/e11f9fb4508534d31b09d2ba6cd22428ccc75f65.diff
LOG: Add 'l' constraint to goto label reference
A goto label uses the 'l' constraint, skipping it can cause unexpected
warnings.
Added:
Modified:
clang/test/Analysis/uninit-asm-goto.cpp
Removed:
################################################################################
diff --git a/clang/test/Analysis/uninit-asm-goto.cpp b/clang/test/Analysis/uninit-asm-goto.cpp
index ce2ca81d944f..74ef261fb655 100644
--- 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 %l2" : "=r"(y) : "r"(x) : : err);
return y;
err:
return -1;
More information about the cfe-commits
mailing list