projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Pass a StringRef to sys::identifyFileType.
[oota-llvm.git]
/
lib
/
Archive
/
Archive.cpp
diff --git
a/lib/Archive/Archive.cpp
b/lib/Archive/Archive.cpp
index 1f36a00ab086f8865405de1c0faebcce8fcf89b4..2b92d0ff8278ff0450f2ec35e08a229b7da4d363 100644
(file)
--- a/
lib/Archive/Archive.cpp
+++ b/
lib/Archive/Archive.cpp
@@
-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;