]> granicus.if.org Git - clang/commitdiff
This cast is not necessary any more (llvm api change).
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 4 Jun 2014 19:03:20 +0000 (19:03 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 4 Jun 2014 19:03:20 +0000 (19:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210206 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenModule.cpp

index 5f23bd4402d405a88e80f314e9820865e1eb8646..44ee1e0f6a47bfaea847bdf26f8422861ee6d58d 100644 (file)
@@ -231,7 +231,7 @@ static const llvm::GlobalObject *getAliasedGlobal(const llvm::GlobalAlias &GA) {
   llvm::SmallPtrSet<const llvm::GlobalAlias*, 4> Visited;
   const llvm::Constant *C = &GA;
   for (;;) {
-    C = cast<llvm::Constant>(C->stripPointerCasts());
+    C = C->stripPointerCasts();
     if (auto *GO = dyn_cast<llvm::GlobalObject>(C))
       return GO;
     // stripPointerCasts will not walk over weak aliases.