Fix a dangling else that gcc-11 warned about. The EXPECT_EQ macro
expands to an if-else, so the whole construction contains a hidden
dangling else.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Nice catch, thanks -- I suppose googletest or wherever EXPECT_EQ comes from should have the do {...}while(0) construct wrapping it, but that's way outside my wheelhouse.
(Landing this as you suggested elsewhere).