We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f11b730 commit 29e72b9Copy full SHA for 29e72b9
clang/lib/CIR/CodeGen/CIRGenModule.cpp
@@ -503,11 +503,9 @@ cir::SourceLanguage CIRGenModule::getCIRSourceLanguage() const {
503
using CIRLang = cir::SourceLanguage;
504
auto opts = getLangOpts();
505
506
- if (opts.CPlusPlus || opts.CPlusPlus11 || opts.CPlusPlus14 ||
507
- opts.CPlusPlus17 || opts.CPlusPlus20 || opts.CPlusPlus23 ||
508
- opts.CPlusPlus26)
+ if (opts.CPlusPlus)
509
return CIRLang::CXX;
510
- if (opts.C99 || opts.C11 || opts.C17 || opts.C23 ||
+ if (opts.C99 || opts.C11 || opts.C17 || opts.C23 || opts.C2y ||
511
opts.LangStd == ClangStd::lang_c89 ||
512
opts.LangStd == ClangStd::lang_gnu89)
513
return CIRLang::C;
0 commit comments