aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorBrendon Cahoon <bcahoon@codeaurora.org>2017-04-17 19:11:04 +0000
committerBrendon Cahoon <bcahoon@codeaurora.org>2017-04-17 19:11:04 +0000
commit7769a0854efe4726422137d6d6aa33288e1c9a51 (patch)
treefd6027404b82a79e7707c498526a0e0e8b823fd8 /clang/lib/CodeGen/CodeGenModule.cpp
parent54c781a0b5d428d712af8bb610b8162bb9ef0a84 (diff)
downloadllvm-7769a0854efe4726422137d6d6aa33288e1c9a51.zip
llvm-7769a0854efe4726422137d6d6aa33288e1c9a51.tar.gz
llvm-7769a0854efe4726422137d6d6aa33288e1c9a51.tar.bz2
[CodeGenPrepare] Fix crash due to an invalid CFG
The splitIndirectCriticalEdges function generates and invalid CFG when the 'Target' basic block is a loop to itself. When this occurs, the code that updates the predecessor terminator needs to update the terminator in the split basic block. This occurs when there is an edge from block D back to D. Since D is split in to D0 and D1, the code needs to update the terminator in D1. But D1 is not in the OtherPreds vector, so it was not getting updated. Differential Revision: https://reviews.llvm.org/D32126 llvm-svn: 300480
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions