From 333f901187a7ba99a5bb1d33fbc66ba4ede465c2 Mon Sep 17 00:00:00 2001 From: Matt Pharr Date: Wed, 23 May 2012 14:19:50 -0700 Subject: [PATCH] Fix build with LLVM 3.2 dev top-of-tree --- type.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) {