projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
SimplifyCFG: don't remove unreachable default switch destinations
[oota-llvm.git]
/
lib
/
Transforms
/
Utils
/
CloneModule.cpp
diff --git
a/lib/Transforms/Utils/CloneModule.cpp
b/lib/Transforms/Utils/CloneModule.cpp
index d05d25164cdf12089d70c5ad8bb46910abaad5d5..fae9ff5bce0f35563d9d6b54a51270625dad7238 100644
(file)
--- a/
lib/Transforms/Utils/CloneModule.cpp
+++ b/
lib/Transforms/Utils/CloneModule.cpp
@@
-109,7
+109,7
@@
Module *llvm::CloneModule(const Module *M, ValueToValueMapTy &VMap) {
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....