aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
diff options
context:
space:
mode:
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>2021-09-29 21:28:38 -0500
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>2021-09-30 05:58:22 -0500
commitfad14a17a490b1825b0c7c40ace7e83c91af4b8a (patch)
tree7e728ae56c62162dba1cab53e211d2f5ab475ff8 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
parent220f314f94abfd201930ed9d491ce55695df2908 (diff)
downloadllvm-fad14a17a490b1825b0c7c40ace7e83c91af4b8a.zip
llvm-fad14a17a490b1825b0c7c40ace7e83c91af4b8a.tar.gz
llvm-fad14a17a490b1825b0c7c40ace7e83c91af4b8a.tar.bz2
[PowerPC] Truncate element index for vec_insert in altivec.h
When a user specifies an out-of-range index for vec_insert, we just produce IR that has undefined behaviour even though the documentation states that modulo arithmetic is used. This patch just truncates the value to a valid index.
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
0 files changed, 0 insertions, 0 deletions