aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Archive/Archive.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Archive/Archive.cpp')
-rw-r--r--lib/Archive/Archive.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Archive/Archive.cpp b/lib/Archive/Archive.cpp
index bb57262..7811b6c 100644
--- a/lib/Archive/Archive.cpp
+++ b/lib/Archive/Archive.cpp
@@ -126,8 +126,11 @@ bool ArchiveMember::replaceWith(const sys::Path& newFile, std::string* ErrMsg) {
return true;
}
- // Determine what kind of file it is
+ // Determine what kind of file it is.
switch (sys::IdentifyFileType(signature,4)) {
+ case sys::Bitcode_FileType:
+ flags |= BitcodeFlag;
+ break;
default:
flags &= ~BitcodeFlag;
break;