summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-12-20 01:27:29 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-12-20 01:27:29 +0000
commit0b4f80ee898c1e85242482e4cb363e6bfe0a133b (patch)
tree404d44bec4f70c6644514d011f5a3a9728531399 /lib
parent15fccf1d9395ccf3f60404e71dc9db029d04f910 (diff)
downloadllvm-0b4f80ee898c1e85242482e4cb363e6bfe0a133b.tar.gz
llvm-0b4f80ee898c1e85242482e4cb363e6bfe0a133b.tar.bz2
llvm-0b4f80ee898c1e85242482e4cb363e6bfe0a133b.tar.xz
getLoad() and getStore() calls missed SVOffset operand. Thanks to Dan Gohman
for pointing it out! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32712 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index ca9c8c7546..37d7eeb1a9 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -1835,7 +1835,7 @@ SDOperand SelectionDAGLowering::getLoadFrom(const Type *Ty, SDOperand Ptr,
L = DAG.getVecLoad(PTy->getNumElements(), PVT, Root, Ptr,
DAG.getSrcValue(SV));
} else {
- L = DAG.getLoad(TLI.getValueType(Ty), Root, Ptr, SV, isVolatile);
+ L = DAG.getLoad(TLI.getValueType(Ty), Root, Ptr, SV, 0, isVolatile);
}
if (isVolatile)
@@ -1851,7 +1851,7 @@ void SelectionDAGLowering::visitStore(StoreInst &I) {
Value *SrcV = I.getOperand(0);
SDOperand Src = getValue(SrcV);
SDOperand Ptr = getValue(I.getOperand(1));
- DAG.setRoot(DAG.getStore(getRoot(), Src, Ptr, I.getOperand(1),
+ DAG.setRoot(DAG.getStore(getRoot(), Src, Ptr, I.getOperand(1), 0,
I.isVolatile()));
}