forked from OSchip/llvm-project
Fixed a bug where variables in the source operands
of store statements were not being marked for resolution. llvm-svn: 118316
This commit is contained in:
parent
f7f9d9d880
commit
c70f8ff417
|
@ -794,7 +794,8 @@ IRForTarget::resolveExternals(Module &M, BasicBlock &BB)
|
|||
return false;
|
||||
|
||||
if (StoreInst *store = dyn_cast<StoreInst>(&inst))
|
||||
if (!MaybeHandleVariable(M, store->getPointerOperand(), true))
|
||||
if (!MaybeHandleVariable(M, store->getValueOperand(), true) ||
|
||||
!MaybeHandleVariable(M, store->getPointerOperand(), true))
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue