diff options
| author | Anders Carlsson <andersca@mac.com> | 2009-09-15 04:39:46 +0000 |
|---|---|---|
| committer | Anders Carlsson <andersca@mac.com> | 2009-09-15 04:39:46 +0000 |
| commit | 04c3bf4fabb46109394df0781bc4d0046afe034d (patch) | |
| tree | ce3447278191c13a2382b4b04c20be0118c54428 /clang/lib/CodeGen/CGExprScalar.cpp | |
| parent | 2b979ef1282f558a9c12413f9560533ba78aed5e (diff) | |
Codegen support for nullptr from C++0x.
llvm-svn: 81835
Diffstat (limited to 'clang/lib/CodeGen/CGExprScalar.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CGExprScalar.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp index aee54464349a..7f9b66468b8c 100644 --- a/clang/lib/CodeGen/CGExprScalar.cpp +++ b/clang/lib/CodeGen/CGExprScalar.cpp @@ -308,6 +308,10 @@ public: return 0; } + Value *VisitCXXNullPtrLiteralExpr(const CXXNullPtrLiteralExpr *E) { + return llvm::Constant::getNullValue(ConvertType(E->getType())); + } + // Binary Operators. Value *EmitMul(const BinOpInfo &Ops) { if (CGF.getContext().getLangOptions().OverflowChecking |
