This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG01b9e613c28b: [Clang][Codegen] Truncate initializers of
union bitfield members (authored by tmatheson).
Repository:
rG LLVM Github Monorepo
pratlucas accepted this revision.
pratlucas added a comment.
This revision is now accepted and ready to land.
The truncate conditions look a lot better and the test coverage seems
reasonable now.
LGTM.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
tmatheson marked 2 inline comments as done.
tmatheson added a comment.
Ping
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93101/new/
https://reviews.llvm.org/D93101
___
cfe-commits mailing list
tmatheson marked 3 inline comments as done.
tmatheson added inline comments.
Comment at: clang/lib/AST/ExprConstant.cpp:9801-9804
+return EvaluateInPlace(Result.getUnionValue(), Info, Subobject, InitExpr)
||
+ (Field->isBitField() &&
+
tmatheson updated this revision to Diff 317340.
tmatheson added a comment.
Make unions in test cases const, and clarify logic
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93101/new/
https://reviews.llvm.org/D93101
Files:
tmatheson updated this revision to Diff 317309.
tmatheson added a comment.
Add test RUN line that checks C++11 behaviour
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93101/new/
https://reviews.llvm.org/D93101
Files:
tmatheson updated this revision to Diff 317306.
tmatheson added a comment.
Added more test cases and explanatory comments
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93101/new/
https://reviews.llvm.org/D93101
Files:
rsmith added inline comments.
Comment at: clang/lib/AST/ExprConstant.cpp:9801-9804
+return EvaluateInPlace(Result.getUnionValue(), Info, Subobject, InitExpr)
||
+ (Field->isBitField() &&
+truncateBitfieldValue(Info, InitExpr, Result.getUnionValue(),
+
joechrisellis added inline comments.
Comment at: clang/lib/AST/ExprConstant.cpp:9803-9804
+ (Field->isBitField() &&
+truncateBitfieldValue(Info, InitExpr, Result.getUnionValue(),
+ Field));
}
nit: I would
tmatheson added a comment.
Ping
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93101/new/
https://reviews.llvm.org/D93101
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
tmatheson updated this revision to Diff 311529.
tmatheson added a comment.
Rebased
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93101/new/
https://reviews.llvm.org/D93101
Files:
clang/lib/AST/ExprConstant.cpp
tmatheson created this revision.
tmatheson requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
If an initial value is given for a bitfield that does not fit in the
bitfield, the value should be truncated. Constant folding for
expressions did
12 matches
Mail list logo