[llvm-commits] CVS: llvm/lib/Linker/LinkModules.cpp
Lauro Ramos Venancio
lauro.venancio at gmail.com
Thu Jun 28 13:07:01 PDT 2007
Changes in directory llvm/lib/Linker:
LinkModules.cpp updated: 1.142 -> 1.143
---
Log message:
Fix a bug in my previous patch.
---
Diffs of the changes: (+2 -3)
LinkModules.cpp | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
Index: llvm/lib/Linker/LinkModules.cpp
diff -u llvm/lib/Linker/LinkModules.cpp:1.142 llvm/lib/Linker/LinkModules.cpp:1.143
--- llvm/lib/Linker/LinkModules.cpp:1.142 Thu Jun 28 14:02:54 2007
+++ llvm/lib/Linker/LinkModules.cpp Thu Jun 28 15:06:38 2007
@@ -578,9 +578,8 @@
// FIXME: we should handle the bitcast alias.
assert(NewAliased && "Can't find the aliased GV.");
- GlobalAlias *NewGA = new GlobalAlias(GA->getType()->getElementType(),
- GA->getLinkage(), GA->getName(),
- NewAliased, Dest);
+ GlobalAlias *NewGA = new GlobalAlias(GA->getType(), GA->getLinkage(),
+ GA->getName(), NewAliased, Dest);
CopyGVAttributes(NewGA, GA);
}
return false;
More information about the llvm-commits
mailing list