aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorPeter Steinfeld <psteinfeld@nvidia.com>2020-11-13 09:31:41 -0800
committerPeter Steinfeld <psteinfeld@nvidia.com>2020-11-13 15:18:13 -0800
commit5795a81cbab879e353299556157dd5fd42cc7857 (patch)
tree22165182cce39b127f10a833b6d0f055bdc4a5be /clang/lib/Frontend/CompilerInvocation.cpp
parent52f05fb2c2c30d12238f7e4ce3f3a4f849c40972 (diff)
downloadllvm-5795a81cbab879e353299556157dd5fd42cc7857.zip
llvm-5795a81cbab879e353299556157dd5fd42cc7857.tar.gz
llvm-5795a81cbab879e353299556157dd5fd42cc7857.tar.bz2
[flang] Fix "EQ" comparison of arrays
When comparing arrays whose shapes do not conform, the contant folding code ran into problems trying to get the value of an extent that did not exist. There were actually two problems. First, the routine "CheckConformance()" was returning "true" when the compiler was unable to get the extent of an array. Second, the function "ApplyElementwise()" was calling "CheckConformance()" prior to folding the elements of two arrays, but it was ignoring the return value. Differential Revision: https://reviews.llvm.org/D91440
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions