Fundament-Software / scopes

Fundament fork of the Scopes language
Other
3 stars 1 forks source link

Invalid constexpr bitcast in tupleof() #21

Open ErikMcClure opened 1 year ago

ErikMcClure commented 1 year ago

Minimal example:

local things = (tupleof "hello")

Explodes with

Assertion failed: CastInst::castIsValid(Instruction::BitCast, C, DstTy) && "Invalid constantexpr bitcast!", file D:\code\vcpkg\buildtrees\llvm\src\org-13.0.0-117f64cd8e.clean\llvm\lib\IR\Constants.cpp, line 2226

This seems unrelated to global pointer issues and is likely easy to fix once the root cause can be narrowed down.