Debug Info: Swap the 2nd and 3rd parameters to DICompileUnit to match the common...
[oota-llvm.git] / lib / IR / DIBuilder.cpp
index 8790fb62b25e3d9e9a67dca492599c0fd1230217..09d2e0707839d2a836e7181d21f51a27d881d363 100644 (file)
@@ -93,8 +93,8 @@ void DIBuilder::createCompileUnit(unsigned Lang, StringRef Filename,
 
   Value *Elts[] = {
     GetTagConstant(VMContext, dwarf::DW_TAG_compile_unit),
-    ConstantInt::get(Type::getInt32Ty(VMContext), Lang),
     createFile(Filename, Directory),
+    ConstantInt::get(Type::getInt32Ty(VMContext), Lang),
     MDString::get(VMContext, Producer),
     ConstantInt::get(Type::getInt1Ty(VMContext), isOptimized),
     MDString::get(VMContext, Flags),