r325293 - Silence a -Wparentheses warning; NFC.

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 15 13:03:39 PST 2018


Author: aaronballman
Date: Thu Feb 15 13:03:39 2018
New Revision: 325293

URL: http://llvm.org/viewvc/llvm-project?rev=325293&view=rev
Log:
Silence a -Wparentheses warning; NFC.

Modified:
    cfe/trunk/lib/StaticAnalyzer/Core/CallEvent.cpp

Modified: cfe/trunk/lib/StaticAnalyzer/Core/CallEvent.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/CallEvent.cpp?rev=325293&r1=325292&r2=325293&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/CallEvent.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/CallEvent.cpp Thu Feb 15 13:03:39 2018
@@ -1197,7 +1197,7 @@ CallEventManager::getCaller(const StackF
   // destructors, though this could change in the future.
   const CFGBlock *B = CalleeCtx->getCallSiteBlock();
   CFGElement E = (*B)[CalleeCtx->getIndex()];
-  assert(E.getAs<CFGImplicitDtor>() || E.getAs<CFGTemporaryDtor>() &&
+  assert((E.getAs<CFGImplicitDtor>() || E.getAs<CFGTemporaryDtor>()) &&
          "All other CFG elements should have exprs");
 
   SValBuilder &SVB = State->getStateManager().getSValBuilder();




More information about the cfe-commits mailing list