================
Comment at: lib/CodeGen/CGStmt.cpp:1241
@@ -1239,2 +1240,3 @@
   JumpDest SwitchExit = getJumpDestInCurrentScope("sw.epilog");
+  OwningPtr<llvm::BasicBlock> SwitchExitOwner(SwitchExit.getBlock());
 
----------------
Err, my intent with my suggestion at least was to change the private member of 
JumpDest to be an OwningPtr, and to add a 'takeBlock()' method adjacent to the 
'getBlock()' method, and to use the latter to transfer ownership out of the 
OwningPtr.


http://llvm-reviews.chandlerc.com/D2472
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to