[dragonegg] r208996 - Update for llvm api change.
Rafael Espindola
rafael.espindola at gmail.com
Fri May 16 09:13:07 PDT 2014
Author: rafael
Date: Fri May 16 11:13:07 2014
New Revision: 208996
URL: http://llvm.org/viewvc/llvm-project?rev=208996&view=rev
Log:
Update for llvm api change.
Modified:
dragonegg/trunk/src/Backend.cpp
Modified: dragonegg/trunk/src/Backend.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Backend.cpp?rev=208996&r1=208995&r2=208996&view=diff
==============================================================================
--- dragonegg/trunk/src/Backend.cpp (original)
+++ dragonegg/trunk/src/Backend.cpp Fri May 16 11:13:07 2014
@@ -984,8 +984,8 @@ static void emit_alias(tree decl, tree t
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.
More information about the llvm-commits
mailing list