diff options
author | Philip Reames <preames@rivosinc.com> | 2022-06-07 07:43:00 -0700 |
---|---|---|
committer | Philip Reames <listmail@philipreames.com> | 2022-06-07 11:26:28 -0700 |
commit | 4f5648adc588e23e2bf52e189030c792a6f1586a (patch) | |
tree | 631addc7c3864842af706368df9c5ca8ec61dab2 /llvm/lib/Support/CommandLine.cpp | |
parent | e80748ff8840a10bd7c7336eb5e98664480ba1ba (diff) | |
download | llvm-4f5648adc588e23e2bf52e189030c792a6f1586a.zip llvm-4f5648adc588e23e2bf52e189030c792a6f1586a.tar.gz llvm-4f5648adc588e23e2bf52e189030c792a6f1586a.tar.bz2 |
[PointerUnionTest] Fix an incorrectly written test
The test being change appears to have been intended to exercise PointerUnion, but what it actually did was cast<> a double to a double*. This only worked because cast<> was missing the required assertion. Adding the assertion reveals a template error where isa<const double*>(double) fails to compile.
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions