Commit 4ab9ad7
committed
Merging r310905 and r310994:
------------------------------------------------------------------------
r310905 | rnk | 2017-08-14 18:17:47 -0700 (Mon, 14 Aug 2017) | 11 lines
Avoid PointerIntPair of constexpr EvalInfo structs
They are stack allocated, so their alignment is not to be trusted.
32-bit MSVC only guarantees 4 byte stack alignment, even though alignof
would tell you otherwise. I tried fixing this with __declspec align, but
that apparently upsets GCC. Hopefully this version will satisfy all
compilers.
See PR32018 for some info about the mingw issues.
Should supercede https://reviews.llvm.org/D34873
------------------------------------------------------------------------
------------------------------------------------------------------------
r310994 | chandlerc | 2017-08-16 00:22:49 -0700 (Wed, 16 Aug 2017) | 6 lines
Fix a UBSan failure where this boolean was copied when uninitialized.
When r310905 moved the pointer and bool out of a PointerIntPair, it made
them end up uninitialized and caused UBSan failures when copying the
uninitialized boolean. However, making the pointer be null should avoid
the reference to the boolean entirely.
------------------------------------------------------------------------
git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_50@318225 91177308-0d34-0410-b5e6-96231b3b80d81 parent d8199c9 commit 4ab9ad7
1 file changed
+11
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
537 | 537 | | |
538 | 538 | | |
539 | 539 | | |
540 | | - | |
| 540 | + | |
541 | 541 | | |
542 | 542 | | |
543 | 543 | | |
| |||
977 | 977 | | |
978 | 978 | | |
979 | 979 | | |
980 | | - | |
981 | | - | |
982 | | - | |
983 | | - | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
984 | 983 | | |
985 | 984 | | |
986 | | - | |
987 | | - | |
988 | | - | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
989 | 988 | | |
990 | 989 | | |
991 | 990 | | |
992 | | - | |
993 | 991 | | |
994 | 992 | | |
995 | 993 | | |
996 | | - | |
997 | | - | |
| 994 | + | |
| 995 | + | |
998 | 996 | | |
999 | 997 | | |
1000 | 998 | | |
1001 | 999 | | |
1002 | 1000 | | |
1003 | 1001 | | |
1004 | 1002 | | |
1005 | | - | |
1006 | | - | |
| 1003 | + | |
| 1004 | + | |
1007 | 1005 | | |
1008 | 1006 | | |
1009 | 1007 | | |
| |||
0 commit comments