1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

Fix typo. Interesting, but old variant worked too :)

llvm-svn: 36588
This commit is contained in:
Anton Korobeynikov 2007-04-30 10:28:40 +00:00
parent 6045236615
commit 202b9dff0e

View File

@ -217,7 +217,7 @@ const GlobalValue *GlobalAlias::getAliasedGlobal() const {
return GV;
else {
const ConstantExpr *CE = 0;
if ((CE = dyn_cast<ConstantExpr>(Aliasee)) &&
if ((CE = dyn_cast<ConstantExpr>(C)) &&
(CE->getOpcode() == Instruction::BitCast))
return cast<GlobalValue>(CE->getOperand(0));
else