Closed eholk closed 13 years ago
This is probably a dup of #481.
Partially. There's the design question of whether it's legal to refer to a variable before it's declared. In this example, however, llchanval
was definitely not initialized when I first tried to read from it, which seems like it's a typestate error.
Sorry it's so long, it wasn't obvious how to reduce it. This is code copied out of trans_comm.rs, but with some as-yet uncommitted changes. It's causing an LLVM assert because I'm passing llchanval to Build in the
auto target = ...
line. I'm using llchanval before it's even declared, let along initialized.