diff options
author | Will Wilson <will@indefiant.com> | 2015-10-27 17:01:10 +0000 |
---|---|---|
committer | Will Wilson <will@indefiant.com> | 2015-10-27 17:01:10 +0000 |
commit | f9de536562ffe6ee1cf7b8007dbb06c3b6074a3c (patch) | |
tree | 21a2005cd8dd6ccf5f28c8889241640469ee3a4b /clang/lib/AST/ASTContext.cpp | |
parent | 5579e0b88ad43d9ac408d8216d9945bdf224c94e (diff) | |
download | bcm5719-llvm-f9de536562ffe6ee1cf7b8007dbb06c3b6074a3c.tar.gz bcm5719-llvm-f9de536562ffe6ee1cf7b8007dbb06c3b6074a3c.zip |
[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
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r-- | clang/lib/AST/ASTContext.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index dabc6f60dde..a27f9b37d26 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -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); |