llvm-project/flang/test
Jean Perier ec13942e71 [flang] prevent undefined behavior in character MAXLOC folding
When folding MAXLOC/MINLOC, the current element being compared was moved twice
in row in case it became the new extremum. With numeric and logical types, it
made no difference (std::move is a no-op for them), but for characters
where the string storage is actually moved, it caused the new extremum to
be set to the empty string, leading to wrong results.

Note: I could have left the first std::move relating to logical Findloc, but it
brings nothing and makes the code less auditable, so I also removed it.

Differential Revision: https://reviews.llvm.org/D122590
2022-03-29 09:34:09 +02:00
..
Driver [flang][driver] Make --version and -version consistent with clang 2022-03-28 22:53:17 +02:00
Evaluate [flang] prevent undefined behavior in character MAXLOC folding 2022-03-29 09:34:09 +02:00
Examples [flang][Parser] Add a node for individual sections in sections construct 2022-03-18 21:55:35 +05:30
Fir [flang][codegen] ensure descriptor lower bounds are LBOUND compliant 2022-03-25 09:02:57 +01:00
Frontend [flang] Distinguish usage and portability warning messages 2022-03-08 17:24:52 -08:00
Lower [flang][OpenMP] Added parallel sections translation 2022-03-29 11:16:38 +05:30
NonGtestUnit Use lit_config.substitute instead of foo % lit_config.params everywhere 2022-03-16 09:57:41 +01:00
Parser [flang][Parser] Add a node for individual sections in sections construct 2022-03-18 21:55:35 +05:30
Preprocessing [flang] Distinguish usage and portability warning messages 2022-03-08 17:24:52 -08:00
Runtime Reland "[flang] GET_COMMAND_ARGUMENT runtime implementation" 2021-09-28 12:34:07 +00:00
Semantics [flang] Fix bogus error from assignment to CLASS(*) 2022-03-25 11:17:01 -07:00
Unit Use lit_config.substitute instead of foo % lit_config.params everywhere 2022-03-16 09:57:41 +01:00
CMakeLists.txt [flang][NFC] Add module lowering tests 2022-03-23 17:51:09 +01:00
lit.cfg.py [flang][driver] Add support for -S and implement -c/-emit-obj 2022-03-09 15:48:09 +00:00
lit.site.cfg.py.in Use lit_config.substitute instead of foo % lit_config.params everywhere 2022-03-16 09:57:41 +01:00