[PATCH] Aliasees no longer have to be GlobalObjects

Michael Kuperstein michael.m.kuperstein at intel.com
Mon Dec 22 06:31:29 PST 2014


Hi rafael,

r210062 reverted the need for aliasees of GlobalAliases to be GlobalObjects, but left a cast<> in CloneModule() that was added in r209007 in place. 

Removing the cast.

http://reviews.llvm.org/D6756

Files:
  lib/Transforms/Utils/CloneModule.cpp

Index: lib/Transforms/Utils/CloneModule.cpp
===================================================================
--- lib/Transforms/Utils/CloneModule.cpp
+++ lib/Transforms/Utils/CloneModule.cpp
@@ -109,7 +109,7 @@
        I != E; ++I) {
     GlobalAlias *GA = cast<GlobalAlias>(VMap[I]);
     if (const Constant *C = I->getAliasee())
-      GA->setAliasee(cast<GlobalObject>(MapValue(C, VMap)));
+      GA->setAliasee(MapValue(C, VMap));
   }
 
   // And named metadata....

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6756.17555.patch
Type: text/x-patch
Size: 482 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141222/99a71080/attachment.bin>


More information about the llvm-commits mailing list