Issue |
145525
|
Summary |
CGHLSLRuntime::initializeBufferFromBinding unconditionally dereferencing RBA after a nullptr check
|
Labels |
new issue
|
Assignees |
|
Reporter |
shafik
|
On this line we have a `nullptr` check on `RBA`:
https://github.com/llvm/llvm-project/blob/12ba75145efe3ada44374036d7d5b5e94e855283/clang/lib/CodeGen/CGHLSLRuntime.cpp#L592-L593
but soon after we unconditionally dereference `RBA`:
https://github.com/llvm/llvm-project/blob/12ba75145efe3ada44374036d7d5b5e94e855283/clang/lib/CodeGen/CGHLSLRuntime.cpp#L596-L600
So one of these lines is a bug, I am not sure which it is.
This change was brought in by: https://github.com/llvm/llvm-project/pull/139022
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs