Try to unbreak selfhost.

llvm-svn: 123537
This commit is contained in:
Benjamin Kramer 2011-01-15 11:25:34 +00:00
parent 540f9536c8
commit ed5f2e504e
1 changed files with 1 additions and 0 deletions

View File

@ -2169,6 +2169,7 @@ static bool isSimpleEnoughPointerToCommit(Constant *C) {
// and we know how to evaluate it by moving the bitcast from the pointer
// operand to the value operand.
} else if (CE->getOpcode() == Instruction::BitCast &&
isa<GlobalVariable>(CE->getOperand(0)) &&
CE->getType()->isPointerTy() &&
CE->getOperand(0)->getType()->isPointerTy()) {
GlobalVariable *GV = cast<GlobalVariable>(CE->getOperand(0));