Issue 114190
Summary [Clang] I find it is difference with gcc -Wempty-body
Labels clang
Assignees
Reporter Zhenhang1213
    Now, I find clang is difference with gcc, and if I want to align with gcc, could I delete  this code

```
 if (StmtLine != BodyLine)
    return false;
```
in

https://github.com/llvm/llvm-project/blob/8d38fbf2f027c72332c8ba03ff0ff0f83b4dcf02/clang/lib/Sema/SemaChecking.cpp#L13597-L13625

demo: https://godbolt.org/z/n6q6Pq7P1
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to