From 4255274cf82d181cad64794aac78b8c1e1a9d794 Mon Sep 17 00:00:00 2001 From: Jay Foad Date: Mon, 1 Aug 2011 12:28:01 +0000 Subject: [PATCH] Micro-optimisation in getAliasedGlobal. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136610 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/Globals.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/VMCore/Globals.cpp b/lib/VMCore/Globals.cpp index b8acc45d181..4254fb29e88 100644 --- a/lib/VMCore/Globals.cpp +++ b/lib/VMCore/Globals.cpp @@ -235,7 +235,7 @@ const GlobalValue *GlobalAlias::getAliasedGlobal() const { CE->getOpcode() == Instruction::GetElementPtr) && "Unsupported aliasee"); - return dyn_cast(CE->getOperand(0)); + return cast(CE->getOperand(0)); } const GlobalValue *GlobalAlias::resolveAliasedGlobal(bool stopOnWeak) const {