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 {