mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-23 02:32:11 +00:00
Try to unbreak selfhost.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123537 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e8f8139429
commit
bfa3b90582
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user