summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorAlexis Hunt <alercah@gmail.com>2010-08-30 09:27:16 +0000
committerAlexis Hunt <alercah@gmail.com>2010-08-30 09:27:16 +0000
commite3675ef0f36b33c9f22aa09a28479a24587155b0 (patch)
treed9a2411158db781d67342055a93d27ffef7061a3 /clang/lib
parent9ed87ba797f0ce88ae173b4e2126b64a40525582 (diff)
downloadbcm5719-llvm-e3675ef0f36b33c9f22aa09a28479a24587155b0.tar.gz
bcm5719-llvm-e3675ef0f36b33c9f22aa09a28479a24587155b0.zip
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) llvm-svn: 112467
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/CodeGen/CGExprScalar.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp
index dd881350c63..0680428e901 100644
--- a/clang/lib/CodeGen/CGExprScalar.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud