[llvm-commits] [dragonegg] r101889 - /dragonegg/branches/release_27/llvm-debug.cpp
Duncan Sands
baldrick at free.fr
Tue Apr 20 00:47:32 PDT 2010
Author: baldrick
Date: Tue Apr 20 02:47:32 2010
New Revision: 101889
URL: http://llvm.org/viewvc/llvm-project?rev=101889&view=rev
Log:
Undo commit 98146, which is incompatible with llvm-2.7:
Port commits 97948, 97962 and 97977 (dpatel) from llvm-gcc:
- Avoid DIDescriptor.isNull() checks.
- Revert r97948.
- Avoid using DIDescriptor.isNull().
One character "!" makes all the difference!
Modified:
dragonegg/branches/release_27/llvm-debug.cpp
Modified: dragonegg/branches/release_27/llvm-debug.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/branches/release_27/llvm-debug.cpp?rev=101889&r1=101888&r2=101889&view=diff
==============================================================================
--- dragonegg/branches/release_27/llvm-debug.cpp (original)
+++ dragonegg/branches/release_27/llvm-debug.cpp Tue Apr 20 02:47:32 2010
@@ -1059,7 +1059,7 @@
MainTy = getOrCreateType(TYPE_MAIN_VARIANT(type));
DIType Ty = createVariantType(type, MainTy);
- if (Ty.isValid())
+ if (!Ty.isNull())
return Ty;
// Work out details of type.
More information about the llvm-commits
mailing list