[llvm] r187247 - Use more parens to clarify assert.

Eric Christopher echristo at gmail.com
Fri Jul 26 14:16:26 PDT 2013


Author: echristo
Date: Fri Jul 26 16:16:25 2013
New Revision: 187247

URL: http://llvm.org/viewvc/llvm-project?rev=187247&view=rev
Log:
Use more parens to clarify assert.

Modified:
    llvm/trunk/lib/IR/DebugInfo.cpp

Modified: llvm/trunk/lib/IR/DebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/DebugInfo.cpp?rev=187247&r1=187246&r2=187247&view=diff
==============================================================================
--- llvm/trunk/lib/IR/DebugInfo.cpp (original)
+++ llvm/trunk/lib/IR/DebugInfo.cpp Fri Jul 26 16:16:25 2013
@@ -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();
 }
 





More information about the llvm-commits mailing list