]> granicus.if.org Git - clang/commit
[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)
commit9cb1b3243da469b7bb24ca07736011ea5f7df8f9
treef781d42e7877379df67c3a954144fbbac0155a1d
parent50bb558a1f15f43d3ce9637f373516e3729344b4
[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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@326021 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/CFG.cpp