Skip to content

Commit

Permalink
Added codegen for slice as lvalue
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettRToomey committed Nov 25, 2017
1 parent 0c1276f commit f52c0fb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Sources/Core/IRGenerator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1561,8 +1561,9 @@ extension IRGenerator {
val = b.buildInsertValue(aggregate: val, element: cap, index: 2)

if returnAddress {
// FIXME: What do? Should we alloca this and return that?
fatalError()
let ptr = entryBlockAlloca(type: canonicalize(slice.type))
_ = b.buildStore(val, to: ptr)
return ptr
}
return val
}
Expand Down

0 comments on commit f52c0fb

Please sign in to comment.