mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-11 15:26:07 +00:00
Fix a bug I introduced into the code generator. :(
llvm-svn: 3694
This commit is contained in:
parent
6690e28d35
commit
23bd92aeeb
@ -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