[clang] 4921ecf - [clang] Fix build failure due to _S
Yaxun Liu via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 25 07:29:17 PDT 2021
Author: Yaxun (Sam) Liu
Date: 2021-06-25T10:10:27-04:00
New Revision: 4921ecfc8194c11ec7c659ad1de11da6e8307361
URL: https://github.com/llvm/llvm-project/commit/4921ecfc8194c11ec7c659ad1de11da6e8307361
DIFF: https://github.com/llvm/llvm-project/commit/4921ecfc8194c11ec7c659ad1de11da6e8307361.diff
LOG: [clang] Fix build failure due to _S
_S is a reserved identifier in <ctype.h> on Solaris.
Added:
Modified:
clang/include/clang/Sema/Sema.h
Removed:
################################################################################
diff --git a/clang/include/clang/Sema/Sema.h b/clang/include/clang/Sema/Sema.h
index d50d2dd83530e..4c3a7035bcc94 100644
--- a/clang/include/clang/Sema/Sema.h
+++ b/clang/include/clang/Sema/Sema.h
@@ -1778,8 +1778,8 @@ class Sema final {
bool SavedDeferDiags = false;
public:
- DeferDiagsRAII(Sema &_S, bool DeferDiags)
- : S(_S), SavedDeferDiags(S.DeferDiags) {
+ DeferDiagsRAII(Sema &S, bool DeferDiags)
+ : S(S), SavedDeferDiags(S.DeferDiags) {
S.DeferDiags = DeferDiags;
}
~DeferDiagsRAII() { S.DeferDiags = SavedDeferDiags; }
More information about the cfe-commits
mailing list