[CFG] Keep speculatively working around an MSVC compiler crash.
authorArtem Dergachev <artem.dergachev@gmail.com>
Sat, 24 Feb 2018 03:54:22 +0000 (03:54 +0000)
committerArtem Dergachev <artem.dergachev@gmail.com>
Sat, 24 Feb 2018 03:54:22 +0000 (03:54 +0000)
commit1c6ed3add617a06da11c8a69b643a7b2e41604b9
tree95a853a4d4597755aa3aadc1100503f18484d7cc
parent161c805da4d2a5f37a8ae982284b4a0743c035c6
[CFG] Keep speculatively working around an MSVC compiler crash.

Replace if() with a switch(). Because random changes in the code seem to
suppress the crash.

Story so far:
r325966 - Crash introduced.
r325969 - Speculative fix had no effect.
r325978 - Tried to bisect the offending function, crash suddenly disappeared.
r326016 - After another random change in the code, bug appeared again.

llvm-svn: 326021
clang/lib/Analysis/CFG.cpp