aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2018-10-26 20:59:55 +0000
committerCraig Topper <craig.topper@intel.com>2018-10-26 20:59:55 +0000
commit7bf85f5c8dd1a6d49581eaf1fdd489eac79e2115 (patch)
tree5476ac9dc36b51f6b1aa09bf2f747b64599501c0 /clang/lib/Frontend/CompilerInvocation.cpp
parentcf477f4e41d5676ee15444244e2f74d9418b6b68 (diff)
downloadllvm-7bf85f5c8dd1a6d49581eaf1fdd489eac79e2115.zip
llvm-7bf85f5c8dd1a6d49581eaf1fdd489eac79e2115.tar.gz
llvm-7bf85f5c8dd1a6d49581eaf1fdd489eac79e2115.tar.bz2
[LegalizeTypes] Stop DAGTypeLegalizer::getSETCCWidenedResultTy from creating illegal setccs. Add checks for valid setccs
The DAGTypeLegalizer::getSETCCWidenedResultTy was widening the MaskVT, but the code in convertMask called after getSETCCWidenedResultTy had no idea this widening had occurred. So none of the operands were widened when convertMask created new setccs with the widened VT. This patch removes the widening and adds some asserts to getNode to validate the types of setccs to prevent issues like this in the future. Differential Revision: https://reviews.llvm.org/D53743 llvm-svn: 345428
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions