lldb-server tests: Fix undefined behavior
authorPavel Labath <labath@google.com>
Wed, 18 Oct 2017 18:52:16 +0000 (18:52 +0000)
committerPavel Labath <labath@google.com>
Wed, 18 Oct 2017 18:52:16 +0000 (18:52 +0000)
commit02af0af01194b2ca535f7a94c8dc6da082d6f049
treeb9cd43ec8a9dc89c6c94c137a6d616d15196cc1c
parentce781e4010101fb16bf25027285d716de72485b6
lldb-server tests: Fix undefined behavior

We were creating a StringRef pointing to a temporary string. Problem manifested
itself when running the test on osx.

llvm-svn: 316106
lldb/unittests/tools/lldb-server/tests/MessageObjects.cpp