aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Metadata.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Metadata.h b/include/llvm/Metadata.h
index 7977c82..0515979 100644
--- a/include/llvm/Metadata.h
+++ b/include/llvm/Metadata.h
@@ -168,7 +168,7 @@ public:
}
operator MetadataBase*() const {
- return cast<MetadataBase>(getValPtr());
+ return dyn_cast_or_null<MetadataBase>(getValPtr());
}
};