Skip to content

Commit 16549c1

Browse files
Endianify FuncInfo
1 parent a2b6288 commit 16549c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/include/llvm/BinaryFormat/SFrame.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ template <endianness E> struct Header {
104104
detail::packed<uint32_t, E> FREOff;
105105
};
106106

107-
struct FDEInfo {
108-
uint8_t Info;
107+
template <endianness E> struct FDEInfo {
108+
detail::packed<uint8_t, E> Info;
109109

110110
uint8_t getPAuthKey() const { return (Info >> 5) & 1; }
111111
FDEType getFDEType() const { return static_cast<FDEType>((Info >> 4) & 1); }
@@ -124,7 +124,7 @@ template <endianness E> struct FuncDescEntry {
124124
detail::packed<uint32_t, E> Size;
125125
detail::packed<uint32_t, E> StartFREOff;
126126
detail::packed<uint32_t, E> NumFREs;
127-
FDEInfo Info;
127+
FDEInfo<E> Info;
128128
detail::packed<uint8_t, E> RepSize;
129129
detail::packed<uint16_t, E> Padding2;
130130
};

0 commit comments

Comments
 (0)