aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorKarl-Johan Karlsson <karl-johan.karlsson@ericsson.com>2018-05-22 08:46:48 +0000
committerKarl-Johan Karlsson <karl-johan.karlsson@ericsson.com>2018-05-22 08:46:48 +0000
commit11d68a619e3f1f1ea5d42441ae4145ae378d6f32 (patch)
tree46d2fdf430dea7f5e6c0040b0e686886b1ef1073 /clang/lib/Frontend/InitPreprocessor.cpp
parentcf377a143451f783547cb9358b0c81e8592efe2c (diff)
downloadllvm-11d68a619e3f1f1ea5d42441ae4145ae378d6f32.zip
llvm-11d68a619e3f1f1ea5d42441ae4145ae378d6f32.tar.gz
llvm-11d68a619e3f1f1ea5d42441ae4145ae378d6f32.tar.bz2
[LowerSwitch] Fixed faulty PHI node update
Summary: When lowerswitch merge several cases into a new default block it's not updating the PHI nodes accordingly. The code that update the PHI nodes for the default edge only update the first entry and do not remove the remaining ones, to make sure the number of entries match the number of predecessors. This is easily fixed by replacing the code that update the PHI node with the already existing utility function for updating PHI nodes. Reviewers: hans, reames, arsenm Reviewed By: arsenm Subscribers: wdng, llvm-commits Differential Revision: https://reviews.llvm.org/D47055 llvm-svn: 332960
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions