diff options
Diffstat (limited to 'llvm/include')
-rw-r--r-- | llvm/include/llvm/Object/COFF.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/include/llvm/Object/COFF.h b/llvm/include/llvm/Object/COFF.h index d9c0cd3870d..579cbadbc94 100644 --- a/llvm/include/llvm/Object/COFF.h +++ b/llvm/include/llvm/Object/COFF.h @@ -299,7 +299,9 @@ public: uint8_t getBaseType() const { return getType() & 0x0F; } - uint8_t getComplexType() const { return (getType() & 0xF0) >> 4; } + uint8_t getComplexType() const { + return (getType() & 0xF0) >> COFF::SCT_COMPLEX_TYPE_SHIFT; + } bool isExternal() const { return getStorageClass() == COFF::IMAGE_SYM_CLASS_EXTERNAL; |