summaryrefslogtreecommitdiffstats
path: root/clang/test/OpenMP/threadprivate_messages.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2015-03-18 04:13:55 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2015-03-18 04:13:55 +0000
commit91797559acb50c46c77aa200253caefc6acdd11c (patch)
tree22dbda14214e64141e3ff1f658a192e053434bd1 /clang/test/OpenMP/threadprivate_messages.cpp
parent4deaac780c9e84aeb46fa9d4ce75870d95f6e436 (diff)
downloadbcm5719-llvm-91797559acb50c46c77aa200253caefc6acdd11c.tar.gz
bcm5719-llvm-91797559acb50c46c77aa200253caefc6acdd11c.zip
[OPENMP] Fix crash on code emitting if errors are found.
Codegen for threadprivate variables (and in some other cases) may cause crash of the compiler if some diagnostic is produced later. This happens because some of the autogenerated globals are not removed from InternalVars StringMap when llvm::Module is reset. Differential Revision: http://reviews.llvm.org/D8360 llvm-svn: 232610
Diffstat (limited to 'clang/test/OpenMP/threadprivate_messages.cpp')
-rw-r--r--clang/test/OpenMP/threadprivate_messages.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/OpenMP/threadprivate_messages.cpp b/clang/test/OpenMP/threadprivate_messages.cpp
index 27b36fbe024..1aaf2d0cf72 100644
--- a/clang/test/OpenMP/threadprivate_messages.cpp
+++ b/clang/test/OpenMP/threadprivate_messages.cpp
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -triple x86_64-apple-macos10.7.0 -verify -fopenmp=libiomp5 -ferror-limit 100 %s
+// RUN: %clang_cc1 -triple x86_64-apple-macos10.7.0 -verify -fopenmp=libiomp5 -ferror-limit 100 -emit-llvm -o - %s
#pragma omp threadprivate // expected-error {{expected '(' after 'threadprivate'}}
#pragma omp threadprivate( // expected-error {{expected identifier}} expected-error {{expected ')'}} expected-note {{to match this '('}}
OpenPOWER on IntegriCloud