mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
Fix a bug I introduced into the code generator. :(
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3694 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9ebf51679e
commit
597f81fea2
@ -114,7 +114,7 @@ FoldGetElemChain(InstrTreeNode* ptrNode, vector<Value*>& chainIdxVec)
|
||||
{
|
||||
InstructionNode* gepNode = dyn_cast<InstructionNode>(ptrNode);
|
||||
GetElementPtrInst* gepInst =
|
||||
dyn_cast_or_null<GetElementPtrInst>(gepNode->getInstruction());
|
||||
dyn_cast_or_null<GetElementPtrInst>(gepNode ? gepNode->getInstruction() :0);
|
||||
|
||||
// ptr value is not computed in this tree or ptr value does not come from GEP
|
||||
// instruction
|
||||
|
@ -114,7 +114,7 @@ FoldGetElemChain(InstrTreeNode* ptrNode, vector<Value*>& chainIdxVec)
|
||||
{
|
||||
InstructionNode* gepNode = dyn_cast<InstructionNode>(ptrNode);
|
||||
GetElementPtrInst* gepInst =
|
||||
dyn_cast_or_null<GetElementPtrInst>(gepNode->getInstruction());
|
||||
dyn_cast_or_null<GetElementPtrInst>(gepNode ? gepNode->getInstruction() :0);
|
||||
|
||||
// ptr value is not computed in this tree or ptr value does not come from GEP
|
||||
// instruction
|
||||
|
Loading…
x
Reference in New Issue
Block a user