File tree 2 files changed +6
-2
lines changed
llvm/include/llvm/Demangle
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -902,7 +902,9 @@ class ExplicitObjectParameter final : public Node {
902
902
public:
903
903
ExplicitObjectParameter (Node *Base_)
904
904
: Node(KExplicitObjectParameter), Base(Base_) {
905
- assert (Base != nullptr );
905
+ DEMANGLE_ASSERT (
906
+ Base != nullptr ,
907
+ " Creating an ExplicitObjectParameter without a valid Base Node." );
906
908
}
907
909
908
910
template <typename Fn> void match (Fn F) const { F (Base); }
Original file line number Diff line number Diff line change @@ -902,7 +902,9 @@ class ExplicitObjectParameter final : public Node {
902
902
public:
903
903
ExplicitObjectParameter (Node *Base_)
904
904
: Node(KExplicitObjectParameter), Base(Base_) {
905
- assert (Base != nullptr );
905
+ DEMANGLE_ASSERT (
906
+ Base != nullptr ,
907
+ " Creating an ExplicitObjectParameter without a valid Base Node." );
906
908
}
907
909
908
910
template <typename Fn> void match (Fn F) const { F (Base); }
You can’t perform that action at this time.
0 commit comments