[NFC] Fix the warning for dangling pointer for c0d6f85e3ae8bc
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>
Wed, 24 May 2023 03:41:26 +0000 (11:41 +0800)
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>
Wed, 24 May 2023 03:42:55 +0000 (11:42 +0800)
commit597dd1f91d9f3823e4184f1fe73d8125fa16c026
tree26841ec4576f6e44fc1bf88119582326b80d459f
parent72ab89e3197cc1bee3b9774edb504690e3e43ed0
[NFC] Fix the warning for dangling pointer for c0d6f85e3ae8bc

The bot notes a warning-converted-error for the dangling pointer. And
the patch fixes that.
clang/unittests/Serialization/VarDeclConstantInitTest.cpp