<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/96862>96862</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
llvm/lib/Transforms/Instrumentation/MemProfiler.cpp:289:Redundant condition in assert
</td>
</tr>
<tr>
<th>Labels</th>
<td>
code-quality,
llvm:transforms
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
dcb314
</td>
</tr>
</table>
<pre>
Static analyser cppcheck says:
llvm/lib/Transforms/Instrumentation/MemProfiler.cpp:289:24: style: Redundant condition: ClHistogram. '!ClHistogram || (ClHistogram && ClUseCalls)' is equivalent to '!ClHistogram || ClUseCalls' [redundantCondition]
Source code is
assert((!ClHistogram || (ClHistogram && ClUseCalls)) &&
"Cannot use -memprof-histogram without Callbacks. Set "
"memprof-use-callbacks");
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysU92OmzwQfZrhxgoiYyfgCy6yrND3XVSquu0DGDMEdw1m_bNV3r6CTbap2t5URchCM3POnBmOVQjmPBPVcHiAw2OmUhydr3vd8b3IOtdf6qeootFMzcpeAnmml0WPpJ9ZUJcA_ATFIxTX09rXCbC1pgNsP3s1h8H5KQC2_88h-jTRvLK5GbD9QNNH7wZjyed6WYCfsJLrKYCfWIgXS-vHJ-rT3Ks5Mu3m3mxgfmKN_c-E6M5eTTkDLAH3dyEGZQNlwwCrn6J4BDyyxn4J1ChrA6AELJkJjF6SeVWW5sii-zPhPbRkcHjwN3nNu7rD4_1Knlzymph2PTET7jOMqRDIR8Bqe_96AHmN32ivDyA2ap5dZCkQ2000Ld4Nu_Gd7ZuJo0uRrUyd0s8hZ08UV9yvTDd0CrTTt_q1EiXwh7f6rK95L7lUGdX7ci9FKQ57mY11j1pWXFS6LIUUBReq4Ch61JWoShx4ZmosUBRHLItSVFzmpZBDVaAmOfTFoAlEQZMyNl8dljt_zkwIiWp5rI6YWdWRDZuHEddN716SsiZeNoENIG7G5Kd4Z0lc_e7rNbPr0jmAKKwJMfxoEU20VP8LT__GxMzM1_-fJW_rMcZlu03YArZnE8fU5dptna8CVqGLd19JR8B2m39V8baC1xq_BwAA___FYjBT">