[llvm-commits] [llvm-gcc-4.2] r97948 - /llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
Devang Patel
dpatel at apple.com
Mon Mar 8 10:26:24 PST 2010
Author: dpatel
Date: Mon Mar 8 12:26:24 2010
New Revision: 97948
URL: http://llvm.org/viewvc/llvm-project?rev=97948&view=rev
Log:
Avoid DIDescriptor.isNull() checks.
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=97948&r1=97947&r2=97948&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp Mon Mar 8 12:26:24 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