diff options
author | vabridgers <58314289+vabridgers@users.noreply.github.com> | 2023-10-12 13:14:20 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-12 13:14:20 -0500 |
commit | dd0f642e6ec5049ccabe3f462cc427ffe213829b (patch) | |
tree | 5a98a436aae67f188f7699af98b217e82b3473ab /lldb/source/Commands/CommandObjectTarget.cpp | |
parent | 4c6cba31aaaa767cdb7f83ec4ca0eab9b6eae127 (diff) | |
download | llvm-dd0f642e6ec5049ccabe3f462cc427ffe213829b.zip llvm-dd0f642e6ec5049ccabe3f462cc427ffe213829b.tar.gz llvm-dd0f642e6ec5049ccabe3f462cc427ffe213829b.tar.bz2 |
[Sema] Add check for bitfield assignments to larger integral types (#68276)
We noticed that clang does not check for bitfield assignment widths,
while gcc does check this.
gcc produced a warning like so for it's -Wconversion flag:
```
$ gcc -Wconversion -c test.c
test.c: In function 'foo':
test.c:10:15: warning: conversion from 'int' to 'signed char:7' may change value [-Wconversion]
10 | vxx.bf = x; // no warning
| ^
```
This change simply adds this check for integral types under the
-Wbitfield-conversion compiler option.
Diffstat (limited to 'lldb/source/Commands/CommandObjectTarget.cpp')
0 files changed, 0 insertions, 0 deletions