diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-05-16 16:13:07 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-05-16 16:13:07 +0000 |
commit | 0bef1d8220efe53d0c821e7b2a6daae129bb9b27 (patch) | |
tree | 14441b8431686fe8e30b3e8af36af02660a22793 /dragonegg | |
parent | 9978e42d4260922b4d03611cc551fd8208001fd9 (diff) |
Update for llvm api change.
Diffstat (limited to 'dragonegg')
-rw-r--r-- | dragonegg/src/Backend.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dragonegg/src/Backend.cpp b/dragonegg/src/Backend.cpp index fce8ae99f07..9408c96e39d 100644 --- a/dragonegg/src/Backend.cpp +++ b/dragonegg/src/Backend.cpp @@ -984,8 +984,8 @@ static void emit_alias(tree decl, tree target) { if (Linkage != GlobalValue::InternalLinkage && !IsWeakRef) { // Create the LLVM alias. - GlobalAlias *GA = - new GlobalAlias(Aliasee->getType(), Linkage, "", Aliasee, TheModule); + auto *GA = new GlobalAlias(Aliasee->getType()->getElementType(), Linkage, + "", Aliasee, TheModule); handleVisibility(decl, GA); // Associate it with decl instead of V. |