diff options
author | erichkeane <ekeane@nvidia.com> | 2024-09-05 08:18:41 -0700 |
---|---|---|
committer | erichkeane <ekeane@nvidia.com> | 2024-09-05 08:24:48 -0700 |
commit | 0c8d6df362fe5b4bce54776e2199623d0382293b (patch) | |
tree | 595edcccded6d2db528828a22cc1b4ac76ed60d7 /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | 122874c955e06defb619b1afd4e26db482dbbf19 (diff) | |
download | llvm-0c8d6df362fe5b4bce54776e2199623d0382293b.zip llvm-0c8d6df362fe5b4bce54776e2199623d0382293b.tar.gz llvm-0c8d6df362fe5b4bce54776e2199623d0382293b.tar.bz2 |
Fix handling of FP-classify where the last arg fails to convert
The last argument of an FP-classify function was checked for vailidity
as an expression, but we never ensured that the usual unary
conversions/etc properly resulted in a valid value. Thus, when we got
the value, it was null, so we had a null dereference.
This patch instead fails out/marks the function call as invalid if the
argument is incorrect. I DID consider just allowing it to continue, but
the result was an extraneous error about how the last argument wasn't a
float (in this case, it was an overload set).
Fixes: #107411
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions