aboutsummaryrefslogtreecommitdiff
path: root/lib/Archive
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-13 05:29:34 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-13 05:29:34 +0000
commit4892cb761e2989ca37697425e91a3016f45b8888 (patch)
tree3a97b39f4bcb89e2c44226ff250d146c08e6889c /lib/Archive
parenta53902b2588adacee53c0145df840b0ad15ac0a3 (diff)
Fix some non-sensical code.
- This makes it more like other similar code in Archive handling. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75452 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Archive')
-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 bb5726293f..7811b6cc57 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;