aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/UpdateTestChecks/common.py
diff options
context:
space:
mode:
authorDiana Picus <diana.picus@linaro.org>2021-09-21 08:57:38 +0000
committerDiana Picus <diana.picus@linaro.org>2021-09-22 06:54:33 +0000
commitabbb0f901ad85aaa06780deefbda9c0ee0c2c7a2 (patch)
tree3e5af68ace0a334012ce3cfc69f2fd5843118ffe /llvm/utils/UpdateTestChecks/common.py
parent47f79c6057764e0c83016269ae2359f8c5c8d135 (diff)
downloadllvm-abbb0f901ad85aaa06780deefbda9c0ee0c2c7a2.zip
llvm-abbb0f901ad85aaa06780deefbda9c0ee0c2c7a2.tar.gz
llvm-abbb0f901ad85aaa06780deefbda9c0ee0c2c7a2.tar.bz2
[flang] Change complex type define in runtime for clang-cl
When compiling the runtime with a version of clang-cl newer than 12, we define CMPLXF as __builtin_complex, which returns a float _Complex type. This errors out in contexts where the result of CMPLXF is expected to be a float_Complex_t. This is defined as _Fcomplex whenever _MSC_VER is defined (and as float _Complex otherwise). This patch defines float_Complex_t & friends as _Fcomplex only when we're using "true" MSVC, and not just clang-pretending-to-be-MSVC. This should only affect clang-cl >= 12. Differential Revision: https://reviews.llvm.org/D110139
Diffstat (limited to 'llvm/utils/UpdateTestChecks/common.py')
0 files changed, 0 insertions, 0 deletions