aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorRoman Lebedev <lebedev.ri@gmail.com>2020-08-19 00:59:07 +0300
committerRoman Lebedev <lebedev.ri@gmail.com>2020-08-19 01:00:42 +0300
commit78bd4231bfbf695cc45b651b6c994f047b287bad (patch)
treea837424d90beafbb65b8b9fa48d8e3374a9d98e4 /clang/lib/CodeGen/CodeGenModule.cpp
parented3534452486728aa2981537ac8d8c5c3e1e6b0a (diff)
downloadllvm-78bd4231bfbf695cc45b651b6c994f047b287bad.zip
llvm-78bd4231bfbf695cc45b651b6c994f047b287bad.tar.gz
llvm-78bd4231bfbf695cc45b651b6c994f047b287bad.tar.bz2
[InstCombine] PHI-aware aggregate reconstruction: properly handle duplicate predecessors
While it may seem like we can just "deduplicate" the case where some basic block happens to be a predecessor more than once, which happens for e.g. switches, that is not correct thing to do. We must actually add a PHI operand for each predecessor. This was initially reported to me by David Major as a clang crash during gecko build for android.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions