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.
1 parent cf401f7 commit 916a10fCopy full SHA for 916a10f
clang/lib/AST/ExprConstant.cpp
@@ -11427,6 +11427,10 @@ class FixedPointExprEvaluator
11427
return true;
11428
}
11429
11430
+ bool ZeroInitialization(const Expr *E) {
11431
+ return Success(0, E);
11432
+ }
11433
+
11434
//===--------------------------------------------------------------------===//
11435
// Visitor Methods
11436
clang/test/CodeGenCXX/fixed-point-zero-init.cpp
@@ -0,0 +1,9 @@
1
+// RUN: %clang_cc1 -ffixed-point -S -emit-llvm %s -o - | FileCheck %s
2
3
+// CHECK: @_ZL1a = internal constant [2 x i32] zeroinitializer
4
+constexpr _Accum a[2] = {};
5
6
+void func2(const _Accum *);
7
+void func() {
8
+ func2(a);
9
+}
0 commit comments