[flang-commits] [clang] [flang] [llvm] [flang] Improvise the error message for the option "-fconvert" with allowed values (PR #215966)

via flang-commits flang-commits at lists.llvm.org
Wed Aug 12 23:34:49 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-flang-driver

Author: Kiran Kumar T P (kiranktp)

<details>
<summary>Changes</summary>

	For the option "-fconvert=foobar"

	Earlier error message:
	error: invalid value 'foobar' in '-fconvert=foobar'

	Updated Error message:
	error: invalid value 'foobar' in '-fconvert=foobar', expected one of: unknown,native,little-endian,big-endian,swap

---
Full diff: https://github.com/llvm/llvm-project/pull/215966.diff


4 Files Affected:

- (modified) clang/include/clang/Options/FlangOptions.td (+1) 
- (modified) flang/lib/Frontend/CompilerInvocation.cpp (+4-2) 
- (modified) flang/test/Driver/convert.f90 (+10-1) 
- (modified) llvm/include/llvm/Option/OptTable.h (+8) 


``````````diff

``````````

</details>


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


More information about the flang-commits mailing list