aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2022-03-23 12:57:30 +0100
committerNikita Popov <npopov@redhat.com>2022-03-23 12:59:42 +0100
commitcde6003ae07195f6d62c73eb98c585af6693e6bb (patch)
tree30b4291c2a42762ec2a2dc662f3a8daff2ca72e4
parentb0bc93da926a943cdc2d8b04f8dcbe23a774520c (diff)
downloadllvm-cde6003ae07195f6d62c73eb98c585af6693e6bb.zip
llvm-cde6003ae07195f6d62c73eb98c585af6693e6bb.tar.gz
llvm-cde6003ae07195f6d62c73eb98c585af6693e6bb.tar.bz2
[LLVMContext] Respect default value of -opaque-pointers option (NFC)
If the option is edited to use true as the default, we should respect that, rather than hardcoding false here.
-rw-r--r--llvm/lib/IR/LLVMContextImpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/LLVMContextImpl.cpp b/llvm/lib/IR/LLVMContextImpl.cpp
index 401af7a..1d115e5 100644
--- a/llvm/lib/IR/LLVMContextImpl.cpp
+++ b/llvm/lib/IR/LLVMContextImpl.cpp
@@ -255,7 +255,7 @@ bool LLVMContextImpl::hasOpaquePointersValue() {
bool LLVMContextImpl::getOpaquePointers() {
if (LLVM_UNLIKELY(!(OpaquePointers.hasValue())))
- OpaquePointers = false;
+ OpaquePointers = OpaquePointersCL;
return *OpaquePointers;
}