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:
Sean Callanan 2010-11-06 00:09:34 +00:00
parent f7f9d9d880
commit c70f8ff417
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}