diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-07-05 19:13:27 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-07-05 19:13:27 +0000 |
commit | 5ac795c56f27735085be5500a1b43f09ceb2bfc9 (patch) | |
tree | 3e3f3a206a69a0773f09d9a056f98d0f48f6ea5d | |
parent | 15cf76ca758a41185e82f8d7ba963dcbc7ce46e6 (diff) | |
download | external_llvm-5ac795c56f27735085be5500a1b43f09ceb2bfc9.zip external_llvm-5ac795c56f27735085be5500a1b43f09ceb2bfc9.tar.gz external_llvm-5ac795c56f27735085be5500a1b43f09ceb2bfc9.tar.bz2 |
Fix typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134433 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Object/COFFObjectFile.cpp | 4 |
1 files 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<const ulittle32_t *>(base() + 0x3c); // Check the PE header. ("PE\0\0") StringRef Actual(reinterpret_cast<const char *>(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; } |