title: LLVM ERROR: Broken function found, compilation aborted
body: <p>Here are couple of simple lines in swift:</p>
  
  <pre><code>let umAB: Unmanaged&lt;ABAddressBookRef&gt; = ABAddressBookCreate()
  let ab: ABAddressBookRef = umAB.takeRetainedValue()
  </code></pre>
  
  <p>The second line breaks code compilation, here's the error that I get:</p>
  
  <pre><code>Bitcast requires both operands to be pointer or neither
  %27 = bitcast %objc_object* %26 to %PSs9AnyObject_, !dbg !170
  LLVM ERROR: Broken function found, compilation aborted!
  Command /Applications/Xcode6-Beta2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift failed with exit code 1
  </code></pre>
  
  <p>Any ideas what's wrong with the second line?</p>