[all-commits] [llvm/llvm-project] 2f7ffb: [Support] Fix bugs in formatv automatic index assi...
Rahul Joshi via All-commits
all-commits at lists.llvm.org
Mon Sep 16 21:48:27 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2f7ffbaad3e7bd14b7a82d4887ef1640272ba1be
https://github.com/llvm/llvm-project/commit/2f7ffbaad3e7bd14b7a82d4887ef1640272ba1be
Author: Rahul Joshi <rjoshi at nvidia.com>
Date: 2024-09-16 (Mon, 16 Sep 2024)
Changed paths:
M llvm/lib/Support/FormatVariadic.cpp
M llvm/unittests/Support/FormatVariadicTest.cpp
Log Message:
-----------
[Support] Fix bugs in formatv automatic index assignment (#108384)
Fix bugs found when actually trying to use formatv() automatic index
assignment in IntrinsicEmitter.cpp:
- Assign automatic index only for `ReplacementType::Format`.
- Make the check for all replacement indices being either automatic orexplicit more accurate.
The existing check fails for formatv("{}{0}{}", 0, 1) (added as a unit test). Explicitly track if we
have seen any explicit and any automatic index instead.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list