mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-20 02:34:48 +00:00
Micro-optimisation in getAliasedGlobal.
llvm-svn: 136610
This commit is contained in:
parent
d0e1227c96
commit
5001a9966f
@ -235,7 +235,7 @@ const GlobalValue *GlobalAlias::getAliasedGlobal() const {
|
||||
CE->getOpcode() == Instruction::GetElementPtr) &&
|
||||
"Unsupported aliasee");
|
||||
|
||||
return dyn_cast<GlobalValue>(CE->getOperand(0));
|
||||
return cast<GlobalValue>(CE->getOperand(0));
|
||||
}
|
||||
|
||||
const GlobalValue *GlobalAlias::resolveAliasedGlobal(bool stopOnWeak) const {
|
||||
|
Loading…
x
Reference in New Issue
Block a user