summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGCXX.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/CGCXX.cpp
parent16a2f3e3022a48426e10ab7b822e8dc824abe23c (diff)
downloadbcm5719-llvm-aff29d303120c94d9bde9ca992783eb7cb7fbedb.tar.gz
bcm5719-llvm-aff29d303120c94d9bde9ca992783eb7cb7fbedb.zip
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/CGCXX.cpp')
-rw-r--r--clang/lib/CodeGen/CGCXX.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGCXX.cpp b/clang/lib/CodeGen/CGCXX.cpp
index 07eb91582af..0314b7c619a 100644
--- a/clang/lib/CodeGen/CGCXX.cpp
+++ b/clang/lib/CodeGen/CGCXX.cpp
@@ -185,8 +185,8 @@ bool CodeGenModule::TryEmitDefinitionAsAlias(GlobalDecl AliasDecl,
return true;
// Create the alias with no name.
- auto *Alias =
- llvm::GlobalAlias::create(AliasType, Linkage, "", Aliasee, &getModule());
+ auto *Alias = llvm::GlobalAlias::create(AliasType->getElementType(), 0,
+ Linkage, "", Aliasee, &getModule());
// Switch any previous uses to the alias.
if (Entry) {
OpenPOWER on IntegriCloud