From 5ac795c56f27735085be5500a1b43f09ceb2bfc9 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 5 Jul 2011 19:13:27 +0000 Subject: Fix typo. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134433 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Object/COFFObjectFile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Object/COFFObjectFile.cpp b/lib/Object/COFFObjectFile.cpp index 0003807..aa079f3 100644 --- a/lib/Object/COFFObjectFile.cpp +++ b/lib/Object/COFFObjectFile.cpp @@ -310,8 +310,8 @@ COFFObjectFile::COFFObjectFile(MemoryBuffer *Object, error_code &ec) HeaderStart += *reinterpret_cast(base() + 0x3c); // Check the PE header. ("PE\0\0") StringRef Actual(reinterpret_cast(base() + HeaderStart), 4); - StringRef Expcted("PE\0\0", 4); - if (Actual != Expcted) { + StringRef Expected("PE\0\0", 4); + if (Actual != Expect) { ec = object_error::parse_failed; return; } -- cgit v1.1