Skip to content
  • Bill Wendling's avatar
    During local stack slot allocation, the materializeFrameBaseRegister function · 3fff1fd4
    Bill Wendling authored
    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
    3fff1fd4
Loading