Pass a StringRef to sys::identifyFileType.
[oota-llvm.git] / lib / Archive / Archive.cpp
index 1f36a00ab086f8865405de1c0faebcce8fcf89b4..2b92d0ff8278ff0450f2ec35e08a229b7da4d363 100644 (file)
@@ -129,7 +129,7 @@ bool ArchiveMember::replaceWith(const sys::Path& newFile, std::string* ErrMsg) {
   }
 
   // Determine what kind of file it is.
-  switch (sys::IdentifyFileType(signature,4)) {
+  switch (sys::identifyFileType(StringRef(signature, 4))) {
     case sys::Bitcode_FileType:
       flags |= BitcodeFlag;
       break;