Don't use isa<CallInst>(this) in the constructor for CallInst's base class.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 20 Dec 2012 04:11:02 +0000 (04:11 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 20 Dec 2012 04:11:02 +0000 (04:11 +0000)
commit488fdce9821a06732631aececa351ad75a224b19
tree2a7ad95ccec74bcbeb2c4ca6573a314df6aa0417
parentc4889013553a4e407e110d1f76d9b6cf1396e702
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170658 91177308-0d34-0410-b5e6-96231b3b80d8
lib/VMCore/Value.cpp