diff options
author | Patrick Walton <pcwalton@fb.com> | 2022-10-30 11:07:38 -0700 |
---|---|---|
committer | Patrick Walton <pcwalton@fb.com> | 2022-10-30 13:20:36 -0700 |
commit | c5ea9b8a51ddcd5121ec1bcad7b034c8aa692f52 (patch) | |
tree | 8952f098284530b6961dc52e9290d5ea2f5084ed /llvm/unittests/Support/CommandLineTest.cpp | |
parent | 95eaefd0df7564a380f71a6909a5bd6b3ad32ab2 (diff) | |
download | llvm-c5ea9b8a51ddcd5121ec1bcad7b034c8aa692f52.zip llvm-c5ea9b8a51ddcd5121ec1bcad7b034c8aa692f52.tar.gz llvm-c5ea9b8a51ddcd5121ec1bcad7b034c8aa692f52.tar.bz2 |
[test][asan] Make the printf-5.c test case actually emit a volatile memcpy.
The current test in printf-5.c appears to try to emit a volatile memcpy for the
format string, but it doesn't because the volatile qualifier is implicitly
casted away. Using a string literal instead preserves the volatile qualifier.
This is a follow-up to D137031 and is a prerequisite for D136822, which elides
memcpys in more instances and would otherwise break this test.
Differential Revision: https://reviews.llvm.org/D137042
Diffstat (limited to 'llvm/unittests/Support/CommandLineTest.cpp')
0 files changed, 0 insertions, 0 deletions