[opaque pointer type] Fix a few uses of PointerType::getElementType in favor of uses of types already available elsewhere
These are a few cleanups I happened to have from trying to go in a different direction recently, so just flushing them out while I have them. llvm-svn: 247593
This commit is contained in:
@@ -2772,8 +2772,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,
|
||||
llvm::Function::ExternalLinkage, "", Aliasee, &getModule());
|
||||
DeclTy, 0, llvm::Function::ExternalLinkage, "", Aliasee, &getModule());
|
||||
|
||||
if (Entry) {
|
||||
if (GA->getAliasee() == Entry) {
|
||||
|
||||
Reference in New Issue
Block a user