fix IOBuf self move-assignment
authorPhilip Pronin <philipp@fb.com>
Tue, 6 May 2014 22:53:39 +0000 (15:53 -0700)
committerDave Watson <davejwatson@fb.com>
Tue, 20 May 2014 19:53:58 +0000 (12:53 -0700)
commit934b3c4f8123eef513a7fff861a2afeb3c4abbf0
tree75cc8136bfbdb4939f2bc03dbbafe1d379efa574
parent2aad5a96331b40d84a4158d46c1624b5ea74d13a
fix IOBuf self move-assignment

Summary: Properly handle `this == &other` case.

Test Plan: fbconfig -r folly/test && fbmake runtests_opt -j32

Reviewed By: simpkins@fb.com

FB internal diff: D1314916
folly/io/IOBuf.cpp