You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I observe the same assertion when compiling a simple .c test with msan:
This means there's another wrong usage of isa<> function, but this is an absolutely unrelated issue.
Extended Description
The code to reproduce this is:
#include "llvm/Support/YAMLTraits.h"
struct T { int a; };
namespace llvm {
namespace yaml {
template <> struct MappingTraits {
static void mapping(llvm::yaml::IO &IO, T &T) {
IO.mapOptional("a", T.a);
}
};
}
}
int main(int argc, const char **argv) {
llvm::yaml::Input Input("");
T T;
Input >> T;
return 0;
}
$ ./test
test: llvm/include/llvm/Support/Casting.h:97: static bool llvm::isa_impl_cl<llvm::yaml::Input::MapHNode, const llvm::yaml::Input::HNode *>::doit(const From *) [To = llvm::yaml::Input::MapHNode, From = const llvm::yaml::Input::HNode *]: Assertion `Val && "isa<> used on a null pointer"' failed.
Aborted (core dumped)
The problem is in the line 88 of lib/Support/YAMLTraits.cpp:
88 MapHNode *MN = dyn_cast(CurrentNode);
The text was updated successfully, but these errors were encountered: