aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2019-08-07 14:39:17 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2019-08-07 14:39:17 +0000
commita06155ddc4edb22f44425f2cf6a2038f4e4c4546 (patch)
treec7084d5ff5f584d77e67c5f4444bfa03935edf75 /clang/lib/Frontend/CompilerInvocation.cpp
parent303b6dbfb47c6e7cc346468aeb0710c2877150e8 (diff)
downloadllvm-a06155ddc4edb22f44425f2cf6a2038f4e4c4546.zip
llvm-a06155ddc4edb22f44425f2cf6a2038f4e4c4546.tar.gz
llvm-a06155ddc4edb22f44425f2cf6a2038f4e4c4546.tar.bz2
[OPENMP]Set default version to OpenMP 4.5.
Since clang fully supports OpenMP 4.5, set the default version to 4.5 instead of 3.1. llvm-svn: 368172
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index d1e9b14..9bd6023 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -2894,8 +2894,8 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK,
}
}
- // Check if -fopenmp is specified.
- Opts.OpenMP = Args.hasArg(options::OPT_fopenmp) ? 1 : 0;
+ // Check if -fopenmp is specified and set default version to 4.5.
+ Opts.OpenMP = Args.hasArg(options::OPT_fopenmp) ? 45 : 0;
// Check if -fopenmp-simd is specified.
bool IsSimdSpecified =
Args.hasFlag(options::OPT_fopenmp_simd, options::OPT_fno_openmp_simd,