diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-01-09 16:50:52 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-01-09 16:50:52 +0000 |
commit | ce1d38b8163650e473d7084e0686ed5a7956057b (patch) | |
tree | e18b771b9cb299dba6d1516f102545cf05980c1e /lib/CodeGen/CodeGenFunction.h | |
parent | 09c4719788a5cea09897525e528fa00420f1677b (diff) |
Give "unsupported" error on calls through block pointers instead of
crashes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61992 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 3b951070ad..2cba7d03e0 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -431,6 +431,12 @@ public: // LValue Expression Emission //===--------------------------------------------------------------------===// + /// EmitUnsupportedRValue - Emit a dummy r-value using the type of E + /// and issue an ErrorUnsupported style diagnostic (using the + /// provided Name). + RValue EmitUnsupportedRValue(const Expr *E, + const char *Name); + /// EmitUnsupportedLValue - Emit a dummy l-value using the type of E /// and issue an ErrorUnsupported style diagnostic (using the /// provided Name). |