Fix a bug in ComputeLinearIndex computation handling multi-level
authorDan Gohman <gohman@apple.com>
Tue, 6 Jan 2009 22:53:52 +0000 (22:53 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 6 Jan 2009 22:53:52 +0000 (22:53 +0000)
commit2c91d102ec29bc766b7172a3062d399dc12640fe
treeb98481838c8f6a38f1ac8ba0227b2965333a8281
parent5d315989542ffe720d9a835010bd7be957e6a830
Fix a bug in ComputeLinearIndex computation handling multi-level
aggregate types. Don't increment the current index after reaching
the end of a struct, as it will already be pointing at
one-past-the end. This fixes PR3288.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61828 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
test/CodeGen/Generic/pr3288.ll [new file with mode: 0644]