repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[InstCombine] Preserve NSW flags for `lshr (mul nuw X, C1), C2 -> mul nuw nsw X,...
[llvm-project.git]
/
clang
/
test
/
CodeGenCXX
/
bool-bitfield.cpp
blob
522c2f71f208206449dc361dc679e7179a134773
1
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s \
2
// RUN: | FileCheck %s
3
4
// PR14638; make sure this doesn't crash.
5
struct
A
{
6
bool
m_sorted
:
1
;
7
};
8
void
func1
(
bool
b
,
A
&
a1
)
9
{
10
if
((
a1
.
m_sorted
=
b
)) {}
11
}
12
// CHECK-LABEL: define{{.*}} void @_Z5func1bR1A
13
// CHECK: br i1
14
// CHECK: ret void