diff options
| author | Sean Hunt <scshunt@csclub.uwaterloo.ca> | 2010-08-30 09:27:16 +0000 |
|---|---|---|
| committer | Sean Hunt <scshunt@csclub.uwaterloo.ca> | 2010-08-30 09:27:16 +0000 |
| commit | 75b8508380e6d44276a8fafe5cafcedb9cf532d3 (patch) | |
| tree | 5d5b067a7616ba7d36bdb0930edd3a09c8f6e912 /lib/CodeGen/CGExprScalar.cpp | |
| parent | 629f9e49d984912c408c6d0096f5fdffbd98b44f (diff) | |
| download | clang-75b8508380e6d44276a8fafe5cafcedb9cf532d3.tar.gz clang-75b8508380e6d44276a8fafe5cafcedb9cf532d3.tar.bz2 clang-75b8508380e6d44276a8fafe5cafcedb9cf532d3.tar.xz | |
Two minor fixes to user-defined literals:
- Zero-initialize UDLData so that crashes stop
- Stop complaining that we can't emit them (we most certainly can)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112467 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprScalar.cpp')
| -rw-r--r-- | lib/CodeGen/CGExprScalar.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp index dd881350c6..0680428e90 100644 --- a/lib/CodeGen/CGExprScalar.cpp +++ b/lib/CodeGen/CGExprScalar.cpp @@ -210,6 +210,9 @@ public: return CGF.EmitCallExpr(E).getScalarVal(); } + Value *VisitUDLiteralExpr(const UDLiteralExpr *E) { + return VisitCallExpr(E); + } Value *VisitStmtExpr(const StmtExpr *E); |
