Skip to content

Commit 5911334

Browse files
authored
[clang][dataflow][NFC] Add a FIXME to handling of union initialization. (#82239)
We want to make it clear that the current behavior doesn't yet handle unions properly.
1 parent 96e5657 commit 5911334

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/lib/Analysis/FlowSensitive/Transfer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,7 @@ class TransferVisitor : public ConstStmtVisitor<TransferVisitor> {
664664
QualType Type = S->getType();
665665

666666
if (Type->isUnionType()) {
667+
// FIXME: Initialize unions properly.
667668
if (auto *Val = Env.createValue(Type))
668669
Env.setValue(*S, *Val);
669670
return;

0 commit comments

Comments
 (0)