We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 71cf245 + 2615a36 commit 47e0079Copy full SHA for 47e0079
lib/ClangImporter/SwiftLookupTable.h
@@ -27,6 +27,7 @@
27
#include "llvm/ADT/Optional.h"
28
#include "llvm/ADT/SmallVector.h"
29
#include "llvm/ADT/TinyPtrVector.h"
30
+#include "llvm/Support/Compiler.h"
31
#include <functional>
32
#include <utility>
33
@@ -133,8 +134,14 @@ class EffectiveClangContext {
133
134
return StringRef(Unresolved.Data, UnresolvedLength);
135
}
136
};
137
+
138
+#if LLVM_PTR_SIZE == 4
139
+static_assert(sizeof(EffectiveClangContext) <= 4 * sizeof(void *),
140
+ "should fit in four pointers");
141
+#else
142
static_assert(sizeof(EffectiveClangContext) <= 2 * sizeof(void *),
143
"should fit in a couple pointers");
144
+#endif
145
146
class SwiftLookupTableReader;
147
class SwiftLookupTableWriter;
0 commit comments