Skip to content
Commit 4a8e454a authored by Richard Smith's avatar Richard Smith
Browse files

Don't use isa<CallInst>(this) in the constructor for CallInst's base class.

This has undefined behavior, because the classof implementation attempts to
access parts of the not-yet-constructed derived class. Found by clang
-fsanitize=vptr.

llvm-svn: 170658
parent f71ffd29
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment