HomePhabricator

[NFC] Silence compiler warning [-Wmissing-braces].

Authored by huihuiz on Jun 12 2020, 8:53 AM.

Description

[NFC] Silence compiler warning [-Wmissing-braces].

llvm/lib/Target/AArch64/AArch64SLSHardening.cpp:146:5: warning: suggest braces around initialization of subobject [-Wmissing-braces]

"__llvm_slsblr_thunk_x0",  "__llvm_slsblr_thunk_x1",
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{

llvm/lib/Target/AArch64/AArch64SLSHardening.cpp:168:5: warning: suggest braces around initialization of subobject [-Wmissing-braces]

AArch64::X0,  AArch64::X1,  AArch64::X2,  AArch64::X3,  AArch64::X4,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{

Details

Committed
huihuizJun 12 2020, 8:55 AM
Parents
rGb2a37cfe2bda: [Analyzer] Replace `assert` with `ASSERT_TRUE` in a unit test to silenceā€¦
Branches
Unknown
Tags
Unknown