Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/CodeGen/CGExprScalar.cpp | ||
---|---|---|
1878 | I can see why you can't have more than one element... but both zero and one seem feasible. (For example, __SVInt8_t s8{__SVInt8_t{}};.) |
clang/lib/CodeGen/CGExprScalar.cpp | ||
---|---|---|
1878 | I thought the same but anything more that zero triggers a cannot initialize a value of type '__SVFloat32_t' with an rvalue of type... compilation error message. Since I got the same error with gcc I didn't dig any deeper. |
clang/lib/CodeGen/CGExprScalar.cpp | ||
---|---|---|
1878 | Let me put it this way: the following crashes on main, and this patch doesn't address it. void test_locals(__SVInt8_t x) { __SVInt8_t s8{x}; } |
clang/lib/CodeGen/CGExprScalar.cpp | ||
---|---|---|
1878 | Oh, sorry, I misread the previous example. |
I can see why you can't have more than one element... but both zero and one seem feasible. (For example, __SVInt8_t s8{__SVInt8_t{}};.)