forked from OSchip/llvm-project
Fix Wparentheses gcc warning. NFC.
It should be either a float(32) or an int(32).
This commit is contained in:
parent
090cae8491
commit
db97a12454
|
@ -3070,7 +3070,7 @@ llvm::Value *CodeGenFunction::EmitCMSEClearRecord(llvm::Value *Src,
|
||||||
llvm::Value *CodeGenFunction::EmitCMSEClearFP16(llvm::Value *Src) {
|
llvm::Value *CodeGenFunction::EmitCMSEClearFP16(llvm::Value *Src) {
|
||||||
llvm::Type *RetTy = Src->getType();
|
llvm::Type *RetTy = Src->getType();
|
||||||
assert(RetTy->isFloatTy() ||
|
assert(RetTy->isFloatTy() ||
|
||||||
RetTy->isIntegerTy() && RetTy->getIntegerBitWidth() == 32);
|
(RetTy->isIntegerTy() && RetTy->getIntegerBitWidth() == 32));
|
||||||
if (RetTy->isFloatTy()) {
|
if (RetTy->isFloatTy()) {
|
||||||
llvm::Value *T0 = Builder.CreateBitCast(Src, Builder.getIntNTy(32));
|
llvm::Value *T0 = Builder.CreateBitCast(Src, Builder.getIntNTy(32));
|
||||||
llvm::Value *T1 = Builder.CreateAnd(T0, 0xffff, "cmse.clear");
|
llvm::Value *T1 = Builder.CreateAnd(T0, 0xffff, "cmse.clear");
|
||||||
|
|
Loading…
Reference in New Issue