diff options
author | Kristof Beyls <kristof.beyls@arm.com> | 2017-11-07 14:37:01 +0000 |
---|---|---|
committer | Kristof Beyls <kristof.beyls@arm.com> | 2017-11-07 14:37:01 +0000 |
commit | d5b7a00fd53398211a048e534ad43b32d474cf7c (patch) | |
tree | 674d52fe324b2b3f04993542476edb0fac44e741 | |
parent | c47fd014aedd0bdfe38101f63881632b2b8088fd (diff) | |
download | bcm5719-llvm-d5b7a00fd53398211a048e534ad43b32d474cf7c.tar.gz bcm5719-llvm-d5b7a00fd53398211a048e534ad43b32d474cf7c.zip |
Silence MSVC error C2398
Reported by http://lab.llvm.org:8011/builders/llvm-clang-x86_64-expensive-checks-win/builds/6000/steps/build-unified-tree/logs/stdio
The error messages were all similar to:
llvm\unittests\CodeGen\GlobalISel\LegalizerInfoTest.cpp(54): error C2398: Element '1': conversion from '' to 'unsigned int' requires a narrowing conversion
llvm-svn: 317578
-rw-r--r-- | llvm/unittests/CodeGen/GlobalISel/LegalizerInfoTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/CodeGen/GlobalISel/LegalizerInfoTest.cpp b/llvm/unittests/CodeGen/GlobalISel/LegalizerInfoTest.cpp index 802f7946cdb..550201ebdd1 100644 --- a/llvm/unittests/CodeGen/GlobalISel/LegalizerInfoTest.cpp +++ b/llvm/unittests/CodeGen/GlobalISel/LegalizerInfoTest.cpp @@ -49,7 +49,7 @@ TEST(LegalizerInfoTest, ScalarRISC) { using namespace TargetOpcode; LegalizerInfo L; // Typical RISCy set of operations based on AArch64. - for (auto Op : {G_ADD, G_SUB}) { + for (unsigned Op : {G_ADD, G_SUB}) { for (unsigned Size : {32, 64}) L.setAction({Op, 0, LLT::scalar(Size)}, LegalizerInfo::Legal); L.setLegalizeScalarToDifferentSizeStrategy( @@ -58,7 +58,7 @@ TEST(LegalizerInfoTest, ScalarRISC) { L.computeTables(); - for (auto &opcode : {G_ADD, G_SUB}) { + for (unsigned opcode : {G_ADD, G_SUB}) { // Check we infer the correct types and actually do what we're told. ASSERT_EQ(L.getAction({opcode, LLT::scalar(8)}), std::make_pair(LegalizerInfo::WidenScalar, LLT::scalar(32))); |