forked from OSchip/llvm-project
[MSVC] Workaround for ICE in cl.exe when compiling ASTContext.cpp in Release Win32
Microsoft connect bug: https://connect.microsoft.com/VisualStudio/feedback/details/1741530 llvm-svn: 251415
This commit is contained in:
parent
5579e0b88a
commit
f9de536562
|
@ -366,8 +366,10 @@ const RawComment *ASTContext::getRawCommentForAnyRedecl(
|
|||
OriginalDeclForRC = I;
|
||||
RawCommentAndCacheFlags Raw;
|
||||
if (RC) {
|
||||
Raw.setRaw(RC);
|
||||
// Call order swapped to work around ICE in VS2015 RTM (Release Win32)
|
||||
// https://connect.microsoft.com/VisualStudio/feedback/details/1741530
|
||||
Raw.setKind(RawCommentAndCacheFlags::FromDecl);
|
||||
Raw.setRaw(RC);
|
||||
} else
|
||||
Raw.setKind(RawCommentAndCacheFlags::NoCommentInDecl);
|
||||
Raw.setOriginalDecl(I);
|
||||
|
|
Loading…
Reference in New Issue