Update for LLVM API changes.
llvm-svn: 77638
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user