]> granicus.if.org Git - clang/commitdiff
Silence a -Wparentheses warning; NFC.
authorAaron Ballman <aaron@aaronballman.com>
Thu, 15 Feb 2018 21:03:39 +0000 (21:03 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Thu, 15 Feb 2018 21:03:39 +0000 (21:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@325293 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Core/CallEvent.cpp

index 034da1720355efc9e083f29a6439fc68473e4cb9..cb41f65e988979195a157df7a94d289d98ca6429 100644 (file)
@@ -1197,7 +1197,7 @@ CallEventManager::getCaller(const StackFrameContext *CalleeCtx,
   // 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();