diff options
author | Rachel Craik <rcraik@ca.ibm.com> | 2017-09-19 21:04:23 +0000 |
---|---|---|
committer | Rachel Craik <rcraik@ca.ibm.com> | 2017-09-19 21:04:23 +0000 |
commit | 1cf49e4d129bf63db3dcb96dd6b651be5c0cc836 (patch) | |
tree | 42f1540ca81274056bf341395023ae214a13fb27 /llvm/lib/Object/WasmObjectFile.cpp | |
parent | 7c1ef6cbdcf0f489adf66fd16d06367482d17c64 (diff) | |
download | llvm-1cf49e4d129bf63db3dcb96dd6b651be5c0cc836.zip llvm-1cf49e4d129bf63db3dcb96dd6b651be5c0cc836.tar.gz llvm-1cf49e4d129bf63db3dcb96dd6b651be5c0cc836.tar.bz2 |
[OpenMP] fix seg-faults printing diagnostics with invalid ordered(n) values
When the value specified for n in ordered(n) is larger than the number of loops a segmentation fault can occur in one of two ways when attempting to print out a diagnostic for an associated depend(sink : vec):
1) The iteration vector vec contains less than n items
2) The iteration vector vec contains a variable that is not a loop control variable
This patch addresses both of these issues.
Differential Revision: https://reviews.llvm.org/D38049
llvm-svn: 313675
Diffstat (limited to 'llvm/lib/Object/WasmObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions