summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-06-04 19:03:20 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-06-04 19:03:20 +0000
commite11f40a9a423eac517dce1e5f295a408342ebb56 (patch)
treea907327030488c1d0abe34d981e6d04872d634fe /clang/lib/CodeGen/CodeGenModule.cpp
parent78598d9ab5f2fc567c9ebb6a90004ce5f0e9aa91 (diff)
downloadbcm5719-llvm-e11f40a9a423eac517dce1e5f295a408342ebb56.tar.gz
bcm5719-llvm-e11f40a9a423eac517dce1e5f295a408342ebb56.zip
This cast is not necessary any more (llvm api change).
llvm-svn: 210206
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 5f23bd4402d..44ee1e0f6a4 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<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.
OpenPOWER on IntegriCloud