[llvm] r241974 - [ExecutionEngine] Add a static cast to the unittest for r241962 to suppress a
Lang Hames
lhames at gmail.com
Fri Jul 10 19:07:28 PDT 2015
Author: lhames
Date: Fri Jul 10 21:07:28 2015
New Revision: 241974
URL: http://llvm.org/viewvc/llvm-project?rev=241974&view=rev
Log:
[ExecutionEngine] Add a static cast to the unittest for r241962 to suppress a
warning.
Modified:
llvm/trunk/unittests/ExecutionEngine/MCJIT/MCJITTest.cpp
Modified: llvm/trunk/unittests/ExecutionEngine/MCJIT/MCJITTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ExecutionEngine/MCJIT/MCJITTest.cpp?rev=241974&r1=241973&r2=241974&view=diff
==============================================================================
--- llvm/trunk/unittests/ExecutionEngine/MCJIT/MCJITTest.cpp (original)
+++ llvm/trunk/unittests/ExecutionEngine/MCJIT/MCJITTest.cpp Fri Jul 10 21:07:28 2015
@@ -258,7 +258,7 @@ TEST_F(MCJITTest, lazy_function_creator_
// Verify that our handler was called for each unresolved function.
auto I = UnresolvedExternals.begin(), E = UnresolvedExternals.end();
- EXPECT_EQ(UnresolvedExternals.size(), 2);
+ EXPECT_EQ(UnresolvedExternals.size(), static_cast<size_t>(2));
EXPECT_FALSE(std::find(I, E, "Foo1") == E);
EXPECT_FALSE(std::find(I, E, "Foo2") == E);
}
More information about the llvm-commits
mailing list