| commit | 6ac5047aa6bf12644e38afb188bd8d821a181ba5 | [log] [tgz] |
|---|---|---|
| author | Leandro Lupori <leandro.lupori@linaro.org> | Tue Jun 04 18:11:58 2024 +0200 |
| committer | GitHub <noreply@github.com> | Tue Jun 04 18:11:58 2024 +0200 |
| tree | cb18146a291a70fa79b29232810bdabe8e1a051f | |
| parent | 335fb9467172683d1b9418ee17120598d0d0a1af [diff] |
[flang] Escape '%' in %VAL/%REF messages (#94331) flang/test/Semantics/call40.f90 was failing on Darwin: actual at 27: VAL or REF are not allowed for dummy argument 'a=' that must be passed by means of a descriptor expect at 27: %VAL or %REF are not allowed for dummy argument 'a=' that must be passed by means of a descriptor When messages.Say() is called with more arguments than just the fixed text message, the message is treated as a format string, passed to vsnprintf. Therefore, the '%' chars in it must be escaped. Note that no conversion happens when there is only a fixed text message. Escaping '%' in this case causes "%%" to be outputted. This can be confusing for someone expecting printf-like behavior. Processing these text messages with snprintf could solve this, as a future improvement.
Welcome to the LLVM project!
This repository contains the source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and run-time environments.
The LLVM project has multiple components. The core of the project is itself called “LLVM”. This contains all of the tools, libraries, and header files needed to process intermediate representations and convert them into object files. Tools include an assembler, disassembler, bitcode analyzer, and bitcode optimizer.
C-like languages use the Clang frontend. This component compiles C, C++, Objective-C, and Objective-C++ code into LLVM bitcode -- and from there into object files, using LLVM.
Other components include: the libc++ C++ standard library, the LLD linker, and more.
Consult the Getting Started with LLVM page for information on building and running LLVM.
For information on how to contribute to the LLVM project, please take a look at the Contributing to LLVM guide.
Join the LLVM Discourse forums, Discord chat, LLVM Office Hours or Regular sync-ups.
The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.