diff --git a/loopy/target/c/__init__.py b/loopy/target/c/__init__.py index 25a8e29ba795ad9887a758869f92644784c1a0ae..f4b124303cceb773a6593b3b9350723842e8476d 100644 --- a/loopy/target/c/__init__.py +++ b/loopy/target/c/__init__.py @@ -715,7 +715,8 @@ class CASTBuilder(ASTBuilderBase): return decl def wrap_global_constant(self, decl): - return decl + from cgen import Static + return Static(decl) def get_value_arg_decl(self, name, shape, dtype, is_written): assert shape == ()