mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 06:40:01 +08:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user