Skip to content

Commit f25536c

Browse files
committed
Fix spirv-cross warning fix
1 parent 75b55c2 commit f25536c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

deps/SPIRV-Cross/spirv_cross_parsed_ir.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1005,8 +1005,9 @@ ParsedIR::LoopLock::LoopLock(uint32_t *lock_)
10051005
}
10061006

10071007
ParsedIR::LoopLock::LoopLock(LoopLock &&other) SPIRV_CROSS_NOEXCEPT
1008+
: lock(other.lock)
10081009
{
1009-
*this = std::move(other);
1010+
other.lock = nullptr;
10101011
}
10111012

10121013
ParsedIR::LoopLock &ParsedIR::LoopLock::operator=(LoopLock &&other) SPIRV_CROSS_NOEXCEPT

0 commit comments

Comments
 (0)