diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-09-10 21:04:00 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-09-10 21:04:00 +0000 |
commit | 98294def01c97e127fa6d812ebd944d37212828a (patch) | |
tree | 30b9c6af850bc24bceff77f4609e03b51d5cd509 /lib/CodeGen/CGExprScalar.cpp | |
parent | c574959e7bb9b0fae6fcf07deb6f2ba3f15ec3b1 (diff) |
Implement CXXNoexceptExpr codegen.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113629 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprScalar.cpp')
-rw-r--r-- | lib/CodeGen/CGExprScalar.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp index eb4929d138..5d864fc560 100644 --- a/lib/CodeGen/CGExprScalar.cpp +++ b/lib/CodeGen/CGExprScalar.cpp @@ -301,6 +301,10 @@ public: return 0; } + Value *VisitCXXNoexceptExpr(const CXXNoexceptExpr *E) { + return llvm::ConstantInt::get(Builder.getInt1Ty(), E->getValue()); + } + // Binary Operators. Value *EmitMul(const BinOpInfo &Ops) { if (Ops.Ty->hasSignedIntegerRepresentation()) { |