[all-commits] [llvm/llvm-project] 56a48d: [msan][test] Disable UB cases in vararg_shadow.cpp...
Thurston Dang via All-commits
all-commits at lists.llvm.org
Thu Jul 30 14:59:35 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 56a48d712006ff7d9a09eef6a86b78d4b2eec3aa
https://github.com/llvm/llvm-project/commit/56a48d712006ff7d9a09eef6a86b78d4b2eec3aa
Author: Thurston Dang <thurston at google.com>
Date: 2026-07-30 (Thu, 30 Jul 2026)
Changed paths:
M compiler-rt/test/msan/vararg_shadow.cpp
Log Message:
-----------
[msan][test] Disable UB cases in vararg_shadow.cpp (#204246)
This patch comments out the tests for char and float, which have
undefined behavior: `warning: second argument to 'va_arg' is of
promotable type 'char'/'float'; this va_arg has undefined behavior
because arguments will be promoted to 'int'/'double' [-Wvarargs]`.
The non-UB way to rewrite the tests is to use `va_arg()` with int and
double types (when the original variables are char and float), but there
are already test cases for int and double.
Note also that the float test makes an assumption that
`cast<float>(cast<double>(float))` will maintain the original shadow,
which MSan need not guarantee. In particular,
https://github.com/llvm/llvm-project/pull/204197 breaks that assumption
(which led to a buildbot breakage and revert).
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