commit | 60283f9bc9da85e032006db5e2ccc364cef89267 | [log] [tgz] |
---|---|---|
author | Anton Korobeynikov <asl@math.spbu.ru> | Sun Dec 13 01:00:59 2009 +0000 |
committer | Anton Korobeynikov <asl@math.spbu.ru> | Sun Dec 13 01:00:59 2009 +0000 |
tree | da09d457a4d62f7e36de948a7d378e78856858fd | |
parent | cdcad11c94bc66d8b9f28cf06f6a60e0943990ba [diff] [blame] |
Fix weird typo which leads to unallocated memory access for nodes with 4 results. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91233 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index abf36e5..c74a2e4 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -4177,7 +4177,7 @@ I->VTs[2] == VT3 && I->VTs[3] == VT4) return *I; - EVT *Array = Allocator.Allocate<EVT>(3); + EVT *Array = Allocator.Allocate<EVT>(4); Array[0] = VT1; Array[1] = VT2; Array[2] = VT3;