fixup: use Bool instead of bool
This commit is contained in:
parent
c0bc00174f
commit
fdfca765a7
@ -2,7 +2,7 @@
|
||||
use crate::attributes;
|
||||
use crate::common::Funclet;
|
||||
use crate::context::CodegenCx;
|
||||
use crate::llvm::{self, AtomicOrdering, AtomicRmwBinOp, BasicBlock};
|
||||
use crate::llvm::{self, AtomicOrdering, AtomicRmwBinOp, BasicBlock, False, True};
|
||||
use crate::type_::Type;
|
||||
use crate::type_of::LayoutLlvmExt;
|
||||
use crate::value::Value;
|
||||
@ -841,7 +841,15 @@ fn bitcast(&mut self, val: &'ll Value, dest_ty: &'ll Type) -> &'ll Value {
|
||||
}
|
||||
|
||||
fn intcast(&mut self, val: &'ll Value, dest_ty: &'ll Type, is_signed: bool) -> &'ll Value {
|
||||
unsafe { llvm::LLVMBuildIntCast2(self.llbuilder, val, dest_ty, is_signed, UNNAMED) }
|
||||
unsafe {
|
||||
llvm::LLVMBuildIntCast2(
|
||||
self.llbuilder,
|
||||
val,
|
||||
dest_ty,
|
||||
if is_signed { True } else { False },
|
||||
UNNAMED,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
fn pointercast(&mut self, val: &'ll Value, dest_ty: &'ll Type) -> &'ll Value {
|
||||
|
@ -1626,7 +1626,7 @@ pub fn LLVMBuildIntCast2<'a>(
|
||||
B: &Builder<'a>,
|
||||
Val: &'a Value,
|
||||
DestTy: &'a Type,
|
||||
IsSigned: bool,
|
||||
IsSigned: Bool,
|
||||
Name: *const c_char,
|
||||
) -> &'a Value;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user