diff options
author | Nikita Popov <npopov@redhat.com> | 2022-05-31 15:40:46 +0200 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2022-05-31 15:43:05 +0200 |
commit | 858e6273d938cc4d08ee053ddff3fe7b19eb302a (patch) | |
tree | fd914ffe8ad9fe0963df58d5b29550efd4b0ba82 /clang/lib/CodeGen/CodeGenAction.cpp | |
parent | ed0303aa2251e4484a2b4ff7f236c9f7cdfb2092 (diff) | |
download | llvm-858e6273d938cc4d08ee053ddff3fe7b19eb302a.zip llvm-858e6273d938cc4d08ee053ddff3fe7b19eb302a.tar.gz llvm-858e6273d938cc4d08ee053ddff3fe7b19eb302a.tar.bz2 |
[Clang] Always set opaque pointers mode
Always set the opaque pointers mode, to make sure that
-no-opaque-pointers continues working when the default on the LLVM
side is flipped.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenAction.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenAction.cpp b/clang/lib/CodeGen/CodeGenAction.cpp index af7a60c..4ffbecd 100644 --- a/clang/lib/CodeGen/CodeGenAction.cpp +++ b/clang/lib/CodeGen/CodeGenAction.cpp @@ -1017,8 +1017,7 @@ CodeGenAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) { if (BA != Backend_EmitNothing && !OS) return nullptr; - if (CI.getCodeGenOpts().OpaquePointers) - VMContext->setOpaquePointers(true); + VMContext->setOpaquePointers(CI.getCodeGenOpts().OpaquePointers); // Load bitcode modules to link with, if we need to. if (LinkModules.empty()) |