Issue 242622
Summary incorrect fix in redundant branch condition check
Labels new issue
Assignees
Reporter Abhay13332
    bool sideeffectCall();
void dosomething();
void fault() { 
  int x;
  if(x){
    if (x || sideeffectCall()) { 
      dosomething();
    } 
  }

}
on recommended fix change to
bool sideeffectCall();
void dosomething();
void fault() { 
 int x;
  if(x){
    sideeffectCall();
      dosomething();
    
 }
}

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

Reply via email to