[clang] db97a12 - Fix Wparentheses gcc warning. NFC.

Simon Pilgrim via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 29 04:21:29 PDT 2020


Author: Simon Pilgrim
Date: 2020-04-29T12:21:05+01:00
New Revision: db97a12454a95556dd7cd812105088c7e8852d92

URL: https://github.com/llvm/llvm-project/commit/db97a12454a95556dd7cd812105088c7e8852d92
DIFF: https://github.com/llvm/llvm-project/commit/db97a12454a95556dd7cd812105088c7e8852d92.diff

LOG: Fix Wparentheses gcc warning. NFC.

It should be either a float(32) or an int(32).

Added: 
    

Modified: 
    clang/lib/CodeGen/CGCall.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp
index 7672d95219fa..55f106e7c300 100644
--- a/clang/lib/CodeGen/CGCall.cpp
+++ b/clang/lib/CodeGen/CGCall.cpp
@@ -3070,7 +3070,7 @@ llvm::Value *CodeGenFunction::EmitCMSEClearRecord(llvm::Value *Src,
 llvm::Value *CodeGenFunction::EmitCMSEClearFP16(llvm::Value *Src) {
   llvm::Type *RetTy = Src->getType();
   assert(RetTy->isFloatTy() ||
-         RetTy->isIntegerTy() && RetTy->getIntegerBitWidth() == 32);
+         (RetTy->isIntegerTy() && RetTy->getIntegerBitWidth() == 32));
   if (RetTy->isFloatTy()) {
     llvm::Value *T0 = Builder.CreateBitCast(Src, Builder.getIntNTy(32));
     llvm::Value *T1 = Builder.CreateAnd(T0, 0xffff, "cmse.clear");


        


More information about the cfe-commits mailing list