Issue 100012
Summary [HLSL] Uninitialized value analysis for `out` parameters
Labels new issue, HLSL
Assignees
Reporter llvm-beanz
    HLSL `out` parameters are uninitialized at the entry of a function and need to be treated as uninitialized values during the uninitialized value analysis for `-Wuninitialized`.

This was partially implemented in DXC (https://github.com/microsoft/DirectXShaderCompiler/pull/5047), but due to incomplete AST representations it caused a lot of problems in DXC. The base implementation in DXC may cover all cases for HLSL in Clang, so it can be the basis of the starting implementation.

### Acceptance Criteria

* -Wuninitialized treats HLSL `out` parameters as uninitialized
* Sufficient test cases to cover uninitialized value warnings for `out` parameters
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to