[PATCH] D13203: [Clang] - Massaging code to fix MSVS 2015 win32-release configuration

George Rimar via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 28 01:18:35 PDT 2015


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;
     }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13203.35837.patch
Type: text/x-patch
Size: 663 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150928/7a84c8d3/attachment.bin>


More information about the cfe-commits mailing list