From e11f9fb4508534d31b09d2ba6cd22428ccc75f65 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Tue, 25 Feb 2020 11:45:56 -0800 Subject: [PATCH] Add 'l' constraint to goto label reference A goto label uses the 'l' constraint, skipping it can cause unexpected warnings. --- clang/test/Analysis/uninit-asm-goto.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/test/Analysis/uninit-asm-goto.cpp b/clang/test/Analysis/uninit-asm-goto.cpp index ce2ca81..74ef261 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; -- 2.7.4