summaryrefslogtreecommitdiffstats
path: root/llvm/examples
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-04-15 23:49:09 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-04-15 23:49:09 +0000
commit1d1a8e00b894e8592945a657626677da13658308 (patch)
tree22fb3337bf146ca9ba5aae8298f1be5a19a440a6 /llvm/examples
parentb74702308122108651142c39ed75f3163f484401 (diff)
downloadbcm5719-llvm-1d1a8e00b894e8592945a657626677da13658308.tar.gz
bcm5719-llvm-1d1a8e00b894e8592945a657626677da13658308.zip
DebugInfo: Remove unnecessary API from DIDerivedType and DIType
Remove the accessors of `DIDerivedType` that downcast to `MDDerivedType`, shifting the `cast<MDDerivedType>` into the callers. Also remove `DIType::isValid()`, which is really just a check against `nullptr` at this point. llvm-svn: 235059
Diffstat (limited to 'llvm/examples')
-rw-r--r--llvm/examples/Kaleidoscope/Chapter8/toy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/examples/Kaleidoscope/Chapter8/toy.cpp b/llvm/examples/Kaleidoscope/Chapter8/toy.cpp
index 5ffc4ca55b3..5665c06a9af 100644
--- a/llvm/examples/Kaleidoscope/Chapter8/toy.cpp
+++ b/llvm/examples/Kaleidoscope/Chapter8/toy.cpp
@@ -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);
OpenPOWER on IntegriCloud