aboutsummaryrefslogtreecommitdiff
path: root/buildtools/codegen/CodegenDecl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'buildtools/codegen/CodegenDecl.cpp')
-rw-r--r--buildtools/codegen/CodegenDecl.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/buildtools/codegen/CodegenDecl.cpp b/buildtools/codegen/CodegenDecl.cpp
index ac6bb01..7cf21ce 100644
--- a/buildtools/codegen/CodegenDecl.cpp
+++ b/buildtools/codegen/CodegenDecl.cpp
@@ -41,8 +41,9 @@ restart:
return pattern;
}
-void DeclEnum::CalcPatternIfNecessary() {
+EnumValuePattern DeclEnum::GetPattern() const {
if (pattern == EVP_COUNT) {
- CalcPattern();
+ pattern = CalcPattern();
}
+ return pattern;
}