[llvm-commits] [llvm-gcc-4.2] r97977 - /llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
Devang Patel
dpatel at apple.com
Mon Mar 8 12:53:59 PST 2010
Author: dpatel
Date: Mon Mar 8 14:53:59 2010
New Revision: 97977
URL: http://llvm.org/viewvc/llvm-project?rev=97977&view=rev
Log:
Avoid using DIDescriptor.isNull().
One character "!" makes all the difference!
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp?rev=97977&r1=97976&r2=97977&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp Mon Mar 8 14:53:59 2010
@@ -1147,7 +1147,7 @@
MainTy = getOrCreateType(TYPE_MAIN_VARIANT(type));
DIType Ty = createVariantType(type, MainTy);
- if (!Ty.isNull())
+ if (Ty.isValid())
return Ty;
// Work out details of type.
More information about the llvm-commits
mailing list