diff options
Diffstat (limited to 'llvm/unittests/Bitcode/BitReaderTest.cpp')
| -rw-r--r-- | llvm/unittests/Bitcode/BitReaderTest.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/unittests/Bitcode/BitReaderTest.cpp b/llvm/unittests/Bitcode/BitReaderTest.cpp index d9e207e9..055850d 100644 --- a/llvm/unittests/Bitcode/BitReaderTest.cpp +++ b/llvm/unittests/Bitcode/BitReaderTest.cpp @@ -118,10 +118,12 @@ TEST(BitReaderTest, TestForEofAfterReadFailureOnDataStreamer) { // Jump to two bytes before end of stream. Cursor.JumpToBit((InputSize - 4) * CHAR_BIT); // Try to read 4 bytes when only 2 are present, resulting in error value 0. - constexpr size_t ReadErrorValue = 0; + const size_t ReadErrorValue = 0; EXPECT_EQ(ReadErrorValue, Cursor.Read(32)); // Should be at eof now. EXPECT_TRUE(Cursor.AtEndOfStream()); + + delete[] Text; } TEST(BitReaderTest, MateralizeForwardRefWithStream) { |
