diff options
author | David Blaikie <dblaikie@gmail.com> | 2015-09-14 18:02:04 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2015-09-14 18:02:04 +0000 |
commit | aff29d303120c94d9bde9ca992783eb7cb7fbedb (patch) | |
tree | e593b3b9a12a3a329317d52e4c1e099ba23a92f0 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 16a2f3e3022a48426e10ab7b822e8dc824abe23c (diff) | |
download | llvm-aff29d303120c94d9bde9ca992783eb7cb7fbedb.zip llvm-aff29d303120c94d9bde9ca992783eb7cb7fbedb.tar.gz llvm-aff29d303120c94d9bde9ca992783eb7cb7fbedb.tar.bz2 |
Revert "[opaque pointer type] update for LLVM API change"
This was the wrong direction to take anyway (because ultimately the
GlobalValue needed the pointee type again and /it/ used
PointerType::getElementType eventually anyway)... let's go a different way.
This reverts commit r236161.
llvm-svn: 247586
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 660f18a..ea42022 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -2772,7 +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()), + cast<llvm::PointerType>(Aliasee->getType())->getElementType(), 0, llvm::Function::ExternalLinkage, "", Aliasee, &getModule()); if (Entry) { |