From e11f40a9a423eac517dce1e5f295a408342ebb56 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 4 Jun 2014 19:03:20 +0000 Subject: [PATCH] This cast is not necessary any more (llvm api change). llvm-svn: 210206 --- clang/lib/CodeGen/CodeGenModule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 5f23bd4..44ee1e0 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -231,7 +231,7 @@ static const llvm::GlobalObject *getAliasedGlobal(const llvm::GlobalAlias &GA) { llvm::SmallPtrSet Visited; const llvm::Constant *C = &GA; for (;;) { - C = cast(C->stripPointerCasts()); + C = C->stripPointerCasts(); if (auto *GO = dyn_cast(C)) return GO; // stripPointerCasts will not walk over weak aliases. -- 2.7.4