aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ortho/llvm6/llvm-cbindings.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/ortho/llvm6/llvm-cbindings.cpp b/src/ortho/llvm6/llvm-cbindings.cpp
index f15da2b43..91a28a789 100644
--- a/src/ortho/llvm6/llvm-cbindings.cpp
+++ b/src/ortho/llvm6/llvm-cbindings.cpp
@@ -1040,8 +1040,13 @@ new_type_decl(OIdent Ident, OTnode Atype)
OTnode Ptr = static_cast<OTnodeAccBase*>(Atype)->Acc;
// Possibly still incomplete
Atype->Dbg = DBuilder->createPointerType
- (Ptr ? Ptr->Dbg : nullptr,
- Atype->getBitSize(), 0, None, StringRef(Ident.cstr));
+ (Ptr ? Ptr->Dbg : nullptr, Atype->getBitSize(), 0,
+#if LLVM_VERSION_MAJOR >= 16
+ std::nullopt,
+#else
+ None,
+#endif
+ StringRef(Ident.cstr));
break;
}