Fix typo. Interesting, but old variant worked too :)
llvm-svn: 36588
This commit is contained in:
parent
e7449654d1
commit
a30bc8fccf
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue