summaryrefslogtreecommitdiff
path: root/lib/System
diff options
context:
space:
mode:
Diffstat (limited to 'lib/System')
-rw-r--r--lib/System/Path.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/System/Path.cpp b/lib/System/Path.cpp
index 0026fd29df..ae166a574d 100644
--- a/lib/System/Path.cpp
+++ b/lib/System/Path.cpp
@@ -127,6 +127,10 @@ sys::IdentifyFileType(const char *magic, unsigned length) {
if (magic[1] == 0x02)
return COFF_FileType;
break;
+ case 0x64: // x86-64 Windows.
+ if (magic[1] == char(0x86))
+ return COFF_FileType;
+ break;
default:
break;