Fix build with LLVM 3.2 dev top-of-tree

This commit is contained in:
Matt Pharr
2012-05-23 14:19:50 -07:00
parent 7dd4d6c75e
commit 333f901187

View File

@@ -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) {