summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/asm.c
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2019-02-26 21:51:16 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2019-02-26 21:51:16 +0000
commit305b6b9647b74466dc4082a203b25fd73a6ed10c (patch)
tree840beeeb4100cf9c94b7266cef412065b9b68d4b /clang/test/Sema/asm.c
parent938d3f461bfff0d56d1b433a804528e8433df95e (diff)
downloadbcm5719-llvm-305b6b9647b74466dc4082a203b25fd73a6ed10c.tar.gz
bcm5719-llvm-305b6b9647b74466dc4082a203b25fd73a6ed10c.zip
[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
Diffstat (limited to 'clang/test/Sema/asm.c')
-rw-r--r--clang/test/Sema/asm.c2
1 files changed, 1 insertions, 1 deletions
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
OpenPOWER on IntegriCloud