diff options
author | Nate Begeman <natebegeman@mac.com> | 2007-11-15 05:40:03 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2007-11-15 05:40:03 +0000 |
commit | e7579b57eb3eabfd3545b86320fb67466730e9fc (patch) | |
tree | 56bca2b849295681a99e39dcd46eb55d86344e2b | |
parent | 9298d9655aed28b2d9f6cc65c81401b209f03fdc (diff) |
Implement codegen of CXX Bool
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44160 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | CodeGen/CGExprScalar.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CodeGen/CGExprScalar.cpp b/CodeGen/CGExprScalar.cpp index 62b223f0ee..669928b6f0 100644 --- a/CodeGen/CGExprScalar.cpp +++ b/CodeGen/CGExprScalar.cpp @@ -100,6 +100,9 @@ public: Value *VisitCharacterLiteral(const CharacterLiteral *E) { return llvm::ConstantInt::get(ConvertType(E->getType()), E->getValue()); } + Value *VisitCXXBoolLiteralExpr(const CXXBoolLiteralExpr *E) { + return llvm::ConstantInt::get(ConvertType(E->getType()), E->getValue()); + } Value *VisitTypesCompatibleExpr(const TypesCompatibleExpr *E) { return llvm::ConstantInt::get(ConvertType(E->getType()), CGF.getContext().typesAreCompatible( |