diff --git a/type.cpp b/type.cpp index aa6a6e77..fc2f74f4 100644 --- a/type.cpp +++ b/type.cpp @@ -789,7 +789,11 @@ EnumType::GetDIType(llvm::DIDescriptor scope) const { m->diBuilder->createEnumerationType(scope, name, diFile, pos.first_line, 32 /* size in bits */, 32 /* align in bits */, - elementArray); + elementArray +#if !defined(LLVM_3_0) && !defined(LLVM_3_1) + , llvm::DIType() +#endif + ); switch (variability.type) {