Update for LLVM API changes.

llvm-svn: 77638
This commit is contained in:
Owen Anderson
2009-07-30 23:11:26 +00:00
parent 16e5124a82
commit 7ec07a573c
7 changed files with 23 additions and 23 deletions

View File

@@ -808,7 +808,7 @@ void CodeGenModule::EmitGlobalVarDefinition(const VarDecl *D) {
if (!Init) {
ErrorUnsupported(D, "static initializer");
QualType T = D->getInit()->getType();
Init = VMContext.getUndef(getTypes().ConvertType(T));
Init = llvm::UndefValue::get(getTypes().ConvertType(T));
}
}