Fix Clang compiler error caused by address of temp