Remove 1 + "string" cases and undo -Wno-string-plus-int.

PiperOrigin-RevId: 293483855
Change-Id: I4f85f31900a75d26aa464df43c8da6da3baa6147
This commit is contained in:
Artem Belevich 2020-02-05 16:52:43 -08:00 committed by TensorFlower Gardener
parent bdef2c56b3
commit 8aebf22477
2 changed files with 5 additions and 6 deletions

View File

@ -4144,7 +4144,6 @@ cc_library(
tf_cc_test(
name = "indexed_array_analysis_test",
srcs = ["indexed_array_analysis_test.cc"],
extra_copts = ["-Wno-string-plus-int"],
deps = [
":hlo_matchers",
":hlo_parser",

View File

@ -631,7 +631,7 @@ ENTRY main {
}
)";
AssertArrayWithConstantsForRootExpressionIs(hlo_text, 1 + R"(
AssertArrayWithConstantsForRootExpressionIs(hlo_text, R"(
(scalar-indexed-const (constant f32[3,4] f32[3,4] {
{ 0.761594176, 0.964027584, 0.995054781, 0.999329329 },
{ 0.761594176, 0.995054781, 0.964027584, 0.999329329 },
@ -658,7 +658,7 @@ ENTRY main {
}
)";
AssertArrayWithConstantsForRootExpressionIs(hlo_text, 1 + R"(
AssertArrayWithConstantsForRootExpressionIs(hlo_text, R"(
(scalar-indexed-const (constant s32[3,4] s32[3,4] {
{ 6, 7, 8, 9 },
{ 6, 8, 7, 9 },
@ -686,7 +686,7 @@ ENTRY main {
}
)";
AssertArrayWithConstantsForRootExpressionIs(hlo_text, 1 + R"(
AssertArrayWithConstantsForRootExpressionIs(hlo_text, R"(
(scalar-indexed-const (constant s32[3,4] s32[3,4] {
{ -4, -3, -2, -1 },
{ -4, -2, -3, -1 },
@ -714,7 +714,7 @@ ENTRY main {
}
)";
AssertArrayWithConstantsForRootExpressionIs(hlo_text, 1 + R"(
AssertArrayWithConstantsForRootExpressionIs(hlo_text, R"(
(scalar-indexed-const (constant s32[3,4] s32[3,4] {
{ 4, 3, 2, 1 },
{ 4, 2, 3, 1 },
@ -741,7 +741,7 @@ ENTRY main {
}
)";
AssertArrayWithConstantsForRootExpressionIs(hlo_text, 1 + R"(
AssertArrayWithConstantsForRootExpressionIs(hlo_text, R"(
(scalar-indexed-const (constant s32[3,4] s32[3,4] {
{ 11, 13, 15, 17 },
{ 11, 14, 14, 17 },