Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit c011edf

Browse files
committed
Object/COFF: Fix import library's getNameType method.
This expression to extract bits were simply wrong. I'm going to test this functionality from LLD. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241703 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 92ea077 commit c011edf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/llvm/Object/COFF.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ struct coff_import_header {
474474
support::ulittle16_t OrdinalHint;
475475
support::ulittle16_t TypeInfo;
476476
int getType() const { return TypeInfo & 0x3; }
477-
int getNameType() const { return (TypeInfo & 0x7) >> 2; }
477+
int getNameType() const { return (TypeInfo >> 2) & 0x7; }
478478
};
479479

480480
struct coff_import_directory_table_entry {

0 commit comments

Comments
 (0)