aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/COFFObjectFile.cpp
diff options
context:
space:
mode:
authorMaryam Moghadas <maryammo@ca.ibm.com>2022-06-15 20:20:24 -0500
committerLei Huang <lei@ca.ibm.com>2022-06-16 17:07:03 -0500
commita9ddb7d54e34533ff4af32d720d69177ef0c605d (patch)
treee1eb86414e4eab29aba847617a8ed4c5a6fa6c85 /llvm/lib/Object/COFFObjectFile.cpp
parent6e566bc5523f743bc34a7e26f050f1f2b4d699a8 (diff)
downloadllvm-a9ddb7d54e34533ff4af32d720d69177ef0c605d.zip
llvm-a9ddb7d54e34533ff4af32d720d69177ef0c605d.tar.gz
llvm-a9ddb7d54e34533ff4af32d720d69177ef0c605d.tar.bz2
[PowerPC] Fixing implicit castings in altivec for -fno-lax-vector-conversions
XL considers different vector types to be incompatible with each other. For example assignment between variables of types vector float and vector long long or even vector signed int and vector unsigned int are diagnosed. clang, however does not diagnose such cases and does a simple bitcast between the two types. This could easily result in program errors. This patch is to fix the implicit casts in altivec.h so that there is no incompatible vector type errors whit -fno-lax-vector-conversions, this is the prerequisite patch to switch the default to -fno-lax-vector-conversions later. Reviewed By: nemanjai, amyk Differential Revision: https://reviews.llvm.org/D124093
Diffstat (limited to 'llvm/lib/Object/COFFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions