grimar created this revision. grimar added reviewers: rsmith, echristo. grimar added subscribers: cfe-commits, grimar.
Microsoft Visual Studio Community 2015 Version 14.0.23107.0 D14REL When building in release mode, MSVS failed with: 57>c:\access_softek\llvm\tools\clang\lib\ast\astcontext.cpp(334): fatal error C1001: An internal error has occurred in the compiler. 57> (compiler file 'f:\dd\vctools\compiler\utc\src\p2\main.c', line 246) 57> To work around this problem, try simplifying or changing the program near the locations listed above. I little code simplification helped to workaround this. http://reviews.llvm.org/D13203 Files: ASTContext.cpp Index: ASTContext.cpp =================================================================== --- ASTContext.cpp +++ ASTContext.cpp @@ -364,14 +364,14 @@ } else { RC = getRawCommentForDeclNoCache(I); OriginalDeclForRC = I; - RawCommentAndCacheFlags Raw; + 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; }
Index: ASTContext.cpp =================================================================== --- ASTContext.cpp +++ ASTContext.cpp @@ -364,14 +364,14 @@ } else { RC = getRawCommentForDeclNoCache(I); OriginalDeclForRC = I; - RawCommentAndCacheFlags Raw; + 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; }
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits