[llvm] 1003113 - Fix -Wparentheses warning - add missing brackets around the entire assertion condition

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 23 05:34:17 PDT 2020


Author: Simon Pilgrim
Date: 2020-07-23T13:33:24+01:00
New Revision: 1003113ef0d9df744f803c1499cbfdd15ab276f6

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

LOG: Fix -Wparentheses warning - add missing brackets around the entire assertion condition

Added: 
    

Modified: 
    llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index 653127782595..bf3b89e00640 100644
--- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@ -2153,11 +2153,11 @@ TargetLoweringObjectFileXCOFF::getStorageClassForGlobal(const GlobalValue *GV) {
 MCSymbol *TargetLoweringObjectFileXCOFF::getFunctionEntryPointSymbol(
     const GlobalValue *Func, const TargetMachine &TM) const {
   assert(
-      isa<Function>(Func) ||
-      (isa<GlobalAlias>(Func) &&
-       isa_and_nonnull<Function>(cast<GlobalAlias>(Func)->getBaseObject())) &&
-          "Func must be a function or an alias which has a function as base "
-          "object.");
+      (isa<Function>(Func) ||
+       (isa<GlobalAlias>(Func) &&
+        isa_and_nonnull<Function>(cast<GlobalAlias>(Func)->getBaseObject()))) &&
+      "Func must be a function or an alias which has a function as base "
+      "object.");
   SmallString<128> NameStr;
   NameStr.push_back('.');
   getNameWithPrefix(NameStr, Func, TM);


        


More information about the llvm-commits mailing list