File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 18
18
19
19
#include " llvm/IR/CallSite.h"
20
20
21
+ #if LLVM_VERSION_GE(5, 0)
22
+ #include " llvm/ADT/Optional.h"
23
+ #endif
24
+
21
25
// ===----------------------------------------------------------------------===
22
26
//
23
27
// This file defines alternate interfaces to core functions that are more
@@ -557,7 +561,11 @@ extern "C" LLVMMetadataRef LLVMRustDIBuilderCreatePointerType(
557
561
LLVMRustDIBuilderRef Builder, LLVMMetadataRef PointeeTy,
558
562
uint64_t SizeInBits, uint32_t AlignInBits, const char *Name) {
559
563
return wrap (Builder->createPointerType (unwrapDI<DIType>(PointeeTy),
560
- SizeInBits, AlignInBits, Name));
564
+ SizeInBits, AlignInBits,
565
+ #if LLVM_VERSION_GE(5, 0)
566
+ /* DWARFAddressSpace */ None,
567
+ #endif
568
+ Name));
561
569
}
562
570
563
571
extern " C" LLVMMetadataRef LLVMRustDIBuilderCreateStructType (
You can’t perform that action at this time.
0 commit comments