aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2015-09-14 18:02:04 +0000
committerDavid Blaikie <dblaikie@gmail.com>2015-09-14 18:02:04 +0000
commitaff29d303120c94d9bde9ca992783eb7cb7fbedb (patch)
treee593b3b9a12a3a329317d52e4c1e099ba23a92f0 /clang/lib/CodeGen/CodeGenModule.cpp
parent16a2f3e3022a48426e10ab7b822e8dc824abe23c (diff)
downloadllvm-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.cpp2
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) {