Virtual table holder field is either metadata or null.
authorDevang Patel <dpatel@apple.com>
Thu, 15 Dec 2011 17:55:56 +0000 (17:55 +0000)
committerDevang Patel <dpatel@apple.com>
Thu, 15 Dec 2011 17:55:56 +0000 (17:55 +0000)
llvm-svn: 146665

llvm/lib/Analysis/DIBuilder.cpp

index ed3e8f4..85dcc46 100644 (file)
@@ -777,7 +777,7 @@ DISubprogram DIBuilder::createFunction(DIDescriptor Context,
     ConstantInt::get(Type::getInt1Ty(VMContext), isDefinition),
     ConstantInt::get(Type::getInt32Ty(VMContext), 0),
     ConstantInt::get(Type::getInt32Ty(VMContext), 0),
-    llvm::Constant::getNullValue(Type::getInt32Ty(VMContext)),
+    NULL,
     ConstantInt::get(Type::getInt32Ty(VMContext), Flags),
     ConstantInt::get(Type::getInt1Ty(VMContext), isOptimized),
     Fn,