Hello! I’m a new developer on an existing project that uses LLVM 6.0.1.
When running tests on Linux (though not on Windows), I am getting the following exception:
Expected must be checked before access or destruction.
Expected value was in success state. (Note: Expected values in success mode must still be checked prior to being destroyed).
Stepping through the code, I see that it’s checking whether the ‘Unchecked’ member variable is ‘true’ (which it is).
This code ran as a result of calling this, from our own code:
(it’s the call to ‘get’ that triggers the error.)
If I’m reading things correctly, the system wants me to ‘check’ the objectFileExpected, before it’s allowed to validly return a value from ‘get’.
This is where my understanding breaks down. What is ‘checking’ in this context, and what do I need to do to check the object in question? What would I do if checking it reported there was a problem?