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 e7449654d1
commit a30bc8fccf
1 changed files with 1 additions and 1 deletions

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