diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-10-25 02:14:12 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-10-25 02:14:12 +0000 |
commit | 8e1cee6f23e2552b96b81e5ef419ab3f69c5b5c2 (patch) | |
tree | 647a5fcb96cf236609a123dbc921866daea4cedc /lib/CodeGen/CodeGenFunction.h | |
parent | 1cb7142b66ac1844b91511314cce2b309a9a180d (diff) |
-fcatch-undefined-behavior checking for appropriate vptr value: Clang CodeGen side.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166661 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 34fc8b9b35..c3f6c8e245 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -1871,7 +1871,9 @@ public: TCK_MemberAccess, /// Checking the 'this' pointer for a call to a non-static member function. /// Must be an object within its lifetime. - TCK_MemberCall + TCK_MemberCall, + /// Checking the 'this' pointer for a constructor call. + TCK_ConstructorCall }; /// \brief Emit a check that \p V is the address of storage of the @@ -2576,7 +2578,8 @@ public: /// conditional branch to it. void EmitCheck(llvm::Value *Checked, StringRef CheckName, llvm::ArrayRef<llvm::Constant *> StaticArgs, - llvm::ArrayRef<llvm::Value *> DynamicArgs); + llvm::ArrayRef<llvm::Value *> DynamicArgs, + bool Recoverable = false); /// EmitCallArg - Emit a single call argument. void EmitCallArg(CallArgList &args, const Expr *E, QualType ArgType); |