From fa2bf434cca10f7008eae580c155ef99087708ae Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Tue, 6 Nov 2007 23:52:19 +0000 Subject: [PATCH] Fixed typo in the name of "ReadPreamble". llvm-svn: 43790 --- clang/Driver/SerializationTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/Driver/SerializationTest.cpp b/clang/Driver/SerializationTest.cpp index 0e9363c8fbf7..76dde1121e00 100644 --- a/clang/Driver/SerializationTest.cpp +++ b/clang/Driver/SerializationTest.cpp @@ -79,7 +79,7 @@ static void WritePreamble(llvm::BitstreamWriter& Stream) { Stream.Emit(0x0, 4); } -static bool ReadPremable(llvm::BitstreamReader& Stream) { +static bool ReadPreamble(llvm::BitstreamReader& Stream) { return Stream.Read(8) != 'B' || Stream.Read(8) != 'C' || Stream.Read(4) != 0xC || @@ -188,7 +188,7 @@ void SerializationTest::Deserialize(llvm::sys::Path& Filename) { llvm::BitstreamReader Stream(BufPtr,BufPtr+MBuffer->getBufferSize()); // Sniff for the signature in the bitcode file. - if (ReadPremable(Stream)) { + if (ReadPreamble(Stream)) { llvm::cerr << "ERROR: Invalid AST-bitcode signature.\n"; return; }