mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
This instruction:
X = gep null, ... Used to not create a scalar map entry for X, which caused clients to barf. This is bad. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20316 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c06828350b
commit
753b113cdf
@ -318,7 +318,8 @@ void GraphBuilder::visitPHINode(PHINode &PN) {
|
||||
|
||||
void GraphBuilder::visitGetElementPtrInst(User &GEP) {
|
||||
DSNodeHandle Value = getValueDest(*GEP.getOperand(0));
|
||||
if (Value.isNull()) return;
|
||||
if (Value.isNull())
|
||||
Value = createNode();
|
||||
|
||||
// As a special case, if all of the index operands of GEP are constant zeros,
|
||||
// handle this just like we handle casts (ie, don't do much).
|
||||
|
Loading…
Reference in New Issue
Block a user