r210206 - This cast is not necessary any more (llvm api change).
Rafael Espindola
rafael.espindola at gmail.com
Wed Jun 4 12:03:20 PDT 2014
Author: rafael
Date: Wed Jun 4 14:03:20 2014
New Revision: 210206
URL: http://llvm.org/viewvc/llvm-project?rev=210206&view=rev
Log:
This cast is not necessary any more (llvm api change).
Modified:
cfe/trunk/lib/CodeGen/CodeGenModule.cpp
Modified: cfe/trunk/lib/CodeGen/CodeGenModule.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.cpp?rev=210206&r1=210205&r2=210206&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenModule.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenModule.cpp Wed Jun 4 14:03:20 2014
@@ -231,7 +231,7 @@ static const llvm::GlobalObject *getAlia
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.
More information about the cfe-commits
mailing list