r242414 made the ExecutionEngine the owner of the data
layout, which broke llgoi (runtime assertion in
MCJIT::generateCodeForModule due to data layout mismatch).
Before adding modules to the engine, clear the data layout
so it will be set by the engine.
Details
Details
- Reviewers
pcc
Diff Detail
Diff Detail
Event Timeline
cmd/llgoi/llgoi.go | ||
---|---|---|
155 | There i something fishy, why is the datalayout set to something else than the target in the first place? |
cmd/llgoi/llgoi.go | ||
---|---|---|
155 | http://llvm.org/klaus/llgo/blob/master/irgen/targets.go#L-43 I don't recall how that came to be, but most likely that needs to be fixed. I'll close this and look into that, thanks. |
There i something fishy, why is the datalayout set to something else than the target in the first place?