So I figured out what that error message means. Apparently the code generated by LDRA was incorrect. The function was trying to return a reference to a local variable. Not good. (For those of you who aren’t programmers, a local variable only exists inside the function it was declared in so if you return a reference to it then whoever called that function tries to use that reference except the local variable doesn’t exist anymore).
I’m just impressed that program didn’t crash.