[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:
Will Wilson 2015-10-27 17:01:10 +00:00
parent 5579e0b88a
commit f9de536562
1 changed files with 3 additions and 1 deletions

View File

@ -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);