diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-05-16 20:01:11 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-05-16 20:01:11 +0000 |
commit | ccff231cff67ce191eeafd8a25e12ce417c90893 (patch) | |
tree | e5e587ff50f9b86a55543e6412abfabff6874e97 /dragonegg | |
parent | 53a48133fc47add59ec78c4bbb270754663155eb (diff) |
Short term fix for llvm api change.
Diffstat (limited to 'dragonegg')
-rw-r--r-- | dragonegg/src/Backend.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dragonegg/src/Backend.cpp b/dragonegg/src/Backend.cpp index 9408c96e39d..fd9ce7d9303 100644 --- a/dragonegg/src/Backend.cpp +++ b/dragonegg/src/Backend.cpp @@ -984,8 +984,10 @@ static void emit_alias(tree decl, tree target) { if (Linkage != GlobalValue::InternalLinkage && !IsWeakRef) { // Create the LLVM alias. + // FIXME: handle alias to aliases. + auto *GO = cast<GlobalObject>(Aliasee); auto *GA = new GlobalAlias(Aliasee->getType()->getElementType(), Linkage, - "", Aliasee, TheModule); + "", GO, TheModule); handleVisibility(decl, GA); // Associate it with decl instead of V. |