[cfe-dev] Need help on getting a while loop statement body

John Tan via cfe-dev cfe-dev at lists.llvm.org
Thu Nov 17 08:22:23 PST 2016


For example ,


while (a > 3) {

 cout << "hello" << endl;

}


Will become


while (a>3){

goto label1;

}

label1:

   cout << "hello" <<endl;


So i would need to take out the body of the loop and put it outside.


The reason i need to do this : control Flow Flattening
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20161117/e1734913/attachment.html>


More information about the cfe-dev mailing list