mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 18:29:46 +00:00
Micro-optimisation in getAliasedGlobal.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136610 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b899d95933
commit
4255274cf8
@ -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…
Reference in New Issue
Block a user