[flang-commits] [flang] fix optional wait wrongly treated as false (PR #78149)

Kiran Chandramohan via flang-commits flang-commits at lists.llvm.org
Mon Jan 15 04:49:29 PST 2024


================
@@ -2913,7 +2913,8 @@ IntrinsicLibrary::genEoshift(mlir::Type resultType,
 // EXECUTE_COMMAND_LINE
 void IntrinsicLibrary::genExecuteCommandLine(
     llvm::ArrayRef<fir::ExtendedValue> args) {
-  assert(args.size() == 5);
+  // Optional KIND argument.
+  assert(args.size() >= 1);
----------------
kiranchandramohan wrote:

There is no KIND argument for `execute_command_line`. Is there a typo?

https://github.com/llvm/llvm-project/pull/78149


More information about the flang-commits mailing list