[PATCH] D13203: [Clang] - Massaging code to fix MSVS 2015 win32-release configuration
George Rimar via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 1 10:50:32 PDT 2015
grimar updated this revision to Diff 36271.
grimar added a comment.
Added comment per review request.
http://reviews.llvm.org/D13203
Files:
ASTContext.cpp
Index: ASTContext.cpp
===================================================================
--- ASTContext.cpp
+++ ASTContext.cpp
@@ -364,14 +364,19 @@
} else {
RC = getRawCommentForDeclNoCache(I);
OriginalDeclForRC = I;
- RawCommentAndCacheFlags Raw;
+ // TODO: these next two lines helps to workaround msvs 2015
+ // internal compiler error. This is a replacement
+ // of delayed assignment RedeclComments[I] = Raw
+ // which caused that issue.
+ RedeclComments[I] = RawCommentAndCacheFlags();
+ RawCommentAndCacheFlags &Raw = RedeclComments[I];
+ //
if (RC) {
Raw.setRaw(RC);
Raw.setKind(RawCommentAndCacheFlags::FromDecl);
} else
Raw.setKind(RawCommentAndCacheFlags::NoCommentInDecl);
Raw.setOriginalDecl(I);
- RedeclComments[I] = Raw;
if (RC)
break;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13203.36271.patch
Type: text/x-patch
Size: 888 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151001/6ff216a0/attachment.bin>
More information about the cfe-commits
mailing list