Skip to content

Commit 36f7c54

Browse files
committed
Use Clang's LangOptions::isCompilingModule accessor.
Clang r279794 changed the LangOpts interface to prevent direct access to the CompilingModules bitfield.
1 parent 97e415c commit 36f7c54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/IDE/Utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ bool ide::initInvocationByClangArguments(ArrayRef<const char *> ArgList,
342342
CCArgs.push_back(Entry);
343343
}
344344

345-
if (!ClangInvok->getLangOpts()->CompilingModule) {
345+
if (!ClangInvok->getLangOpts()->isCompilingModule()) {
346346
CCArgs.push_back("-Xclang");
347347
llvm::SmallString<64> Str;
348348
Str += "-fmodule-name=";

0 commit comments

Comments
 (0)