aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorKiran Chandramohan <kiran.chandramohan@arm.com>2023-07-18 10:33:57 +0000
committerKiran Chandramohan <kiran.chandramohan@arm.com>2023-07-18 11:05:25 +0000
commitfc43c4f0181bfb7e7821e8b12fbd45e5178e884b (patch)
tree26832bf9dee7d7a03198f8055c4342841a07320f /flang/lib/Frontend/CompilerInvocation.cpp
parent75f459d555a46a337c9f77948392fa9d750ea555 (diff)
downloadllvm-fc43c4f0181bfb7e7821e8b12fbd45e5178e884b.zip
llvm-fc43c4f0181bfb7e7821e8b12fbd45e5178e884b.tar.gz
llvm-fc43c4f0181bfb7e7821e8b12fbd45e5178e884b.tar.bz2
[Flang] Include logical default with default-integer-8
Other compilers include the logical default also with the default-integer-8 setting. This patch does the same for flang. Reviewed By: awarzynski, sscalpone Differential Revision: https://reviews.llvm.org/D155279
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--flang/lib/Frontend/CompilerInvocation.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/flang/lib/Frontend/CompilerInvocation.cpp b/flang/lib/Frontend/CompilerInvocation.cpp
index 4c49f3b..e76b67a 100644
--- a/flang/lib/Frontend/CompilerInvocation.cpp
+++ b/flang/lib/Frontend/CompilerInvocation.cpp
@@ -704,6 +704,7 @@ static bool parseDialectArgs(CompilerInvocation &res, llvm::opt::ArgList &args,
res.getDefaultKinds().set_defaultIntegerKind(8);
res.getDefaultKinds().set_subscriptIntegerKind(8);
res.getDefaultKinds().set_sizeIntegerKind(8);
+ res.getDefaultKinds().set_defaultLogicalKind(8);
}
if (args.hasArg(clang::driver::options::OPT_fdefault_double_8)) {
if (!args.hasArg(clang::driver::options::OPT_fdefault_real_8)) {