Bug 1176096 - Ensure we don't do self-moves in move assignment (r=bent)

This commit is contained in:
Bill McCloskey 2015-06-29 13:43:42 -07:00
parent 3fd5dd5090
commit 2e6ec629ef

View File

@ -161,7 +161,7 @@ public:
InterruptFrame& operator=(InterruptFrame&& aOther)
{
MOZ_ASSERT(&aOther != this);
MOZ_RELEASE_ASSERT(&aOther != this);
this->~InterruptFrame();
new (this) InterruptFrame(mozilla::Move(aOther));
return *this;