majnemer added a subscriber: majnemer.
majnemer added a comment.

In http://reviews.llvm.org/D13203#257539, @klimek wrote:

> Not sure whether it makes sense to work around compiler bugs in CL. I assume 
> this happens with clang from trunk? Is there a bug filed against CL?


We do this with some regularity for MSVC and GCC.


================
Comment at: ASTContext.cpp:367-369
@@ -366,4 +366,5 @@
       OriginalDeclForRC = I;
-      RawCommentAndCacheFlags Raw;
+      RedeclComments[I] = RawCommentAndCacheFlags();
+      RawCommentAndCacheFlags &Raw = RedeclComments[I];
       if (RC) {
         Raw.setRaw(RC);
----------------
We need a comment detailing that this is a workaround for MSVC 2015 so that it 
can be removed when we drop support for 2015.


http://reviews.llvm.org/D13203



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to