aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenAction.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2022-05-31 15:40:46 +0200
committerNikita Popov <npopov@redhat.com>2022-05-31 15:43:05 +0200
commit858e6273d938cc4d08ee053ddff3fe7b19eb302a (patch)
treefd914ffe8ad9fe0963df58d5b29550efd4b0ba82 /clang/lib/CodeGen/CodeGenAction.cpp
parented0303aa2251e4484a2b4ff7f236c9f7cdfb2092 (diff)
downloadllvm-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.cpp3
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())