]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/commitdiff
Use more parens to clarify assert.
authorEric Christopher <echristo@gmail.com>
Fri, 26 Jul 2013 21:16:25 +0000 (21:16 +0000)
committerEric Christopher <echristo@gmail.com>
Fri, 26 Jul 2013 21:16:25 +0000 (21:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187247 91177308-0d34-0410-b5e6-96231b3b80d8

lib/IR/DebugInfo.cpp

index 5c70a21fd81d613e6aeef2d5200ac010b74df32c..58f054cf9fbdb1dcff514bc1c7d1eba1c18f2768 100644 (file)
@@ -711,7 +711,7 @@ DIScope DIScope::getContext() const {
   if (isNameSpace())
     return DINameSpace(DbgNode).getContext();
 
-  assert(isFile() || isCompileUnit() && "Unhandled type of scope.");
+  assert((isFile() || isCompileUnit()) && "Unhandled type of scope.");
   return DIScope();
 }