From 305b6b9647b74466dc4082a203b25fd73a6ed10c Mon Sep 17 00:00:00 2001 From: Alexey Bataev Date: Tue, 26 Feb 2019 21:51:16 +0000 Subject: [OPENMP][CUDA]Do not emit warnings for variables in late-reported asm statements. If the assembler instruction is not generated and the delayed diagnostic is emitted, we may end up with extra warning message for variables used in the asm statement. Since the asm statement is not built, the variables may be left non-referenced and it may produce a warning about a use of the non-initialized variables. llvm-svn: 354928 --- clang/test/Sema/asm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/test/Sema/asm.c') diff --git a/clang/test/Sema/asm.c b/clang/test/Sema/asm.c index 04b7cb19eb8..67da197426c 100644 --- a/clang/test/Sema/asm.c +++ b/clang/test/Sema/asm.c @@ -249,7 +249,7 @@ void fn6() { int a; __asm__("" : "=rm"(a), "=rm"(a) - : "11m"(a)) // expected-error {{invalid input constraint '11m' in asm}} + : "11m"(a)); // expected-error {{invalid input constraint '11m' in asm}} } // PR14269 -- cgit v1.2.3