forked from OSchip/llvm-project
Don't always zext the result of the not unary operator to an int.
llvm-svn: 72117
This commit is contained in:
parent
840e3281ff
commit
775640d248
|
@ -719,8 +719,8 @@ Value *ScalarExprEmitter::VisitUnaryLNot(const UnaryOperator *E) {
|
|||
// the operand is an icmp ne, turn into icmp eq.
|
||||
BoolVal = Builder.CreateNot(BoolVal, "lnot");
|
||||
|
||||
// ZExt result to int.
|
||||
return Builder.CreateZExt(BoolVal, CGF.LLVMIntTy, "lnot.ext");
|
||||
// ZExt result to the expr type.
|
||||
return Builder.CreateZExt(BoolVal, ConvertType(E->getType()), "lnot.ext");
|
||||
}
|
||||
|
||||
/// VisitSizeOfAlignOfExpr - Return the size or alignment of the type of
|
||||
|
|
Loading…
Reference in New Issue