[llvm-commits] [llvm] r136610 - /llvm/trunk/lib/VMCore/Globals.cpp
Jay Foad
jay.foad at gmail.com
Mon Aug 1 05:28:01 PDT 2011
Author: foad
Date: Mon Aug 1 07:28:01 2011
New Revision: 136610
URL: http://llvm.org/viewvc/llvm-project?rev=136610&view=rev
Log:
Micro-optimisation in getAliasedGlobal.
Modified:
llvm/trunk/lib/VMCore/Globals.cpp
Modified: llvm/trunk/lib/VMCore/Globals.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Globals.cpp?rev=136610&r1=136609&r2=136610&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Globals.cpp (original)
+++ llvm/trunk/lib/VMCore/Globals.cpp Mon Aug 1 07:28:01 2011
@@ -235,7 +235,7 @@
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 {
More information about the llvm-commits
mailing list