[llvm] r175426 - DIBuilder: Correct the null/0 type of trailing fields in struct debug info.

David Blaikie dblaikie at gmail.com
Sun Feb 17 23:27:30 PST 2013


Author: dblaikie
Date: Mon Feb 18 01:27:30 2013
New Revision: 175426

URL: http://llvm.org/viewvc/llvm-project?rev=175426&view=rev
Log:
DIBuilder: Correct the null/0 type of trailing fields in struct debug info.

Paired with an Clang commit so this may cause temporary build failures.

Modified:
    llvm/trunk/lib/IR/DIBuilder.cpp

Modified: llvm/trunk/lib/IR/DIBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/DIBuilder.cpp?rev=175426&r1=175425&r2=175426&view=diff
==============================================================================
--- llvm/trunk/lib/IR/DIBuilder.cpp (original)
+++ llvm/trunk/lib/IR/DIBuilder.cpp Mon Feb 18 01:27:30 2013
@@ -526,8 +526,8 @@ DIType DIBuilder::createStructType(DIDes
     NULL,
     Elements,
     ConstantInt::get(Type::getInt32Ty(VMContext), RunTimeLang),
-    ConstantInt::get(Type::getInt32Ty(VMContext), 0),
-    ConstantInt::get(Type::getInt32Ty(VMContext), 0),
+    NULL,
+    NULL,
   };
   return DIType(MDNode::get(VMContext, Elts));
 }





More information about the llvm-commits mailing list