Issue |
128210
|
Summary |
clang/lib/CodeGen/HLSLBufferLayoutBuilder.cpp:92: Possible && || mixup ?
|
Labels |
clang:codegen,
code-quality
|
Assignees |
|
Reporter |
dcb314
|
A recent build of clang by gcc says:
clang/lib/CodeGen/HLSLBufferLayoutBuilder.cpp:92:58: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
Source code is
assert(!Packoffsets || Index < Packoffsets->size() &&
"number of elements in layout struct does not "
"match number of packoffset annotations");
Suggest add ( and ) to make intention clear.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs