DebugInfo: Remove unnecessary API from DIDerivedType and DIType
[oota-llvm.git] / examples / Kaleidoscope / Chapter8 / toy.cpp
index 5ffc4ca55b3be066f6c08b5c2e19d37a89d10bd9..5665c06a9afb0020e93966a97469105e3f967a34 100644 (file)
@@ -817,7 +817,7 @@ static PrototypeAST *ParseExtern() {
 static DIBuilder *DBuilder;
 
 DIType DebugInfo::getDoubleTy() {
-  if (DblTy.isValid())
+  if (DblTy)
     return DblTy;
 
   DblTy = DBuilder->createBasicType("double", 64, 64, dwarf::DW_ATE_float);