This website requires JavaScript.
Explore
Help
Sign In
maxjhandsome
/
llvm-project
forked from
OSchip/llvm-project
Watch
1
Star
0
Fork
You've already forked llvm-project
0
Code
Issues
Pull Requests
Packages
Releases
Wiki
Activity
6e924a3090
llvm-project
/
clang
/
test
/
CodeGenCXX
/
expr.cpp
6 lines
89 B
C++
Raw
Normal View
History
Unescape
Escape
Rename clang to clang-cc. Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
2009-03-24 10:24:46 +08:00
// RUN: clang-cc -emit-llvm -x c++ < %s
make ScalarExprEmitter::EmitCompare() emit the expression with the correct type instead of always zext it to an int this fixes codegen of simple exprs in C++ like 'if (x != 0)' llvm-svn: 62060
2009-01-12 07:22:37 +08:00
void
f
(
int
x
)
{
if
(
x
!
=
0
)
return
;
}