[clang] [clang] Stop simplifyConstraint at embedded NUL (PR #196223)
Jeremy Morse via cfe-commits
cfe-commits at lists.llvm.org
Thu May 7 01:27:26 PDT 2026
================
@@ -1072,6 +1072,9 @@ TargetInfo::simplifyConstraint(StringRef Constraint,
SmallVectorImpl<ConstraintInfo> *OutCons) const {
std::string Result;
+ // Stop at '\0' to match the old behavior.
----------------
jmorse wrote:
I'd suggest wording this to avoid the reader having to consider when "old" might be: something like "Ignore embedded nulls to match prior clang (clang-21 and earlier) behaviours".
https://github.com/llvm/llvm-project/pull/196223
More information about the cfe-commits
mailing list