Invalid Use Diagnostic

I’m currently working on asm goto with return values. For the first iteration, I want to limit the use of return values to the “normal” path. Therefore, I would like to issue a diagnostic if the use is in the “abnormal” path that doesn’t first go through the “normal” code. I’m not very familiar with how clang determines such things. How can this be done?

-bw

By “diagnostic”, you mean a -Wuninitialized warning? That’s generated by clang::runUninitializedVariablesAnalysis.

-Eli

That may do. Thanks!