Fixed a bug where variables in the source operands
of store statements were not being marked for
resolution.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@118316 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Expression/IRForTarget.cpp b/source/Expression/IRForTarget.cpp
index d6d0586..0acbee8 100644
--- a/source/Expression/IRForTarget.cpp
+++ b/source/Expression/IRForTarget.cpp
@@ -794,7 +794,8 @@
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;
}