aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2010-12-17 23:09:14 +0000
committerBill Wendling <isanbard@gmail.com>2010-12-17 23:09:14 +0000
commit3fff1fd49bac4196c89eb9c2f1dc8a90840338c5 (patch)
tree0d1baa15cbd70151001ca70e637dc99782cce604 /llvm/lib/Support/CommandLine.cpp
parent5408144add0bfaaed141ca725feffc27894120bf (diff)
downloadllvm-3fff1fd49bac4196c89eb9c2f1dc8a90840338c5.zip
llvm-3fff1fd49bac4196c89eb9c2f1dc8a90840338c5.tar.gz
llvm-3fff1fd49bac4196c89eb9c2f1dc8a90840338c5.tar.bz2
During local stack slot allocation, the materializeFrameBaseRegister function
may be called. If the entry block is empty, the insertion point iterator will be the "end()" value. Calling ->getParent() on it (among others) causes problems. Modify materializeFrameBaseRegister to take the machine basic block and insert the frame base register at the beginning of that block. (It's very similar to what the code does all ready. The only difference is that it will always insert at the beginning of the entry block instead of after a previous materialization of the frame base register. I doubt that that matters here.) <rdar://problem/8782198> llvm-svn: 122104
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions