[clang] e488800 - Fix LIT test failure encountered on AIX
Chris Bowler via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 8 20:56:59 PDT 2021
Author: Chris Bowler
Date: 2021-06-08T23:56:42-04:00
New Revision: e48880078a49faeacb28fd5478948fd674d7350b
URL: https://github.com/llvm/llvm-project/commit/e48880078a49faeacb28fd5478948fd674d7350b
DIFF: https://github.com/llvm/llvm-project/commit/e48880078a49faeacb28fd5478948fd674d7350b.diff
LOG: Fix LIT test failure encountered on AIX
```
fatal error: error in backend: getLangStandardForKind() on unspecified kind
```
Clang :: Modules/preprocess-module.cpp
Clang :: Modules/no-module-map.cpp
Clang :: Modules/preprocess-build-diamond.m
Clang :: Modules/preprocess-decluse.cpp
Clang :: Modules/string_names.cpp
Fix to prior commit f38eff777e46f42884d82815d0b39766520ac2bf, D103707
Added:
Modified:
clang/lib/Basic/Targets/OSTargets.h
Removed:
################################################################################
diff --git a/clang/lib/Basic/Targets/OSTargets.h b/clang/lib/Basic/Targets/OSTargets.h
index 6e4e6f0aafe40..ce56b4f1f005e 100644
--- a/clang/lib/Basic/Targets/OSTargets.h
+++ b/clang/lib/Basic/Targets/OSTargets.h
@@ -676,7 +676,7 @@ class AIXTargetInfo : public OSTargetInfo<Target> {
Builder.defineMacro("_AIX");
- if (LangStandard::getLangStandardForKind(Opts.LangStd).isC11()) {
+ if (Opts.C11) {
Builder.defineMacro("__STDC_NO_ATOMICS__");
Builder.defineMacro("__STDC_NO_THREADS__");
}
More information about the cfe-commits
mailing list