r203545 - Fix use of uninitialized variable in ExternalASTSourceTest.cpp (introduced in 203525)
David Blaikie
dblaikie at gmail.com
Mon Mar 10 23:49:26 PDT 2014
Author: dblaikie
Date: Tue Mar 11 01:49:26 2014
New Revision: 203545
URL: http://llvm.org/viewvc/llvm-project?rev=203545&view=rev
Log:
Fix use of uninitialized variable in ExternalASTSourceTest.cpp (introduced in 203525)
Modified:
cfe/trunk/unittests/AST/ExternalASTSourceTest.cpp
Modified: cfe/trunk/unittests/AST/ExternalASTSourceTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/AST/ExternalASTSourceTest.cpp?rev=203545&r1=203544&r2=203545&view=diff
==============================================================================
--- cfe/trunk/unittests/AST/ExternalASTSourceTest.cpp (original)
+++ cfe/trunk/unittests/AST/ExternalASTSourceTest.cpp Tue Mar 11 01:49:26 2014
@@ -77,7 +77,7 @@ TEST(ExternalASTSourceTest, FailedLookup
unsigned &Calls;
};
- unsigned Calls;
+ unsigned Calls = 0;
ASSERT_TRUE(testExternalASTSource(new TestSource(Calls), "int j, k = j;"));
EXPECT_EQ(1u, Calls);
}
More information about the cfe-commits
mailing list