[opaque pointer type] update for LLVM API change

llvm-svn: 236161
This commit is contained in:
David Blaikie
2015-04-29 21:22:47 +00:00
parent f64246be72
commit 881b23402e
5 changed files with 10 additions and 11 deletions

View File

@@ -2523,7 +2523,7 @@ void CodeGenModule::EmitAliasDefinition(GlobalDecl GD) {
// Create the new alias itself, but don't set a name yet.
auto *GA = llvm::GlobalAlias::create(
cast<llvm::PointerType>(Aliasee->getType())->getElementType(), 0,
cast<llvm::PointerType>(Aliasee->getType()),
llvm::Function::ExternalLinkage, "", Aliasee, &getModule());
if (Entry) {