[cfe-commits] r44160 - /cfe/trunk/CodeGen/CGExprScalar.cpp

Nate Begeman natebegeman at mac.com
Wed Nov 14 21:40:05 PST 2007


Author: sampo
Date: Wed Nov 14 23:40:03 2007
New Revision: 44160

URL: http://llvm.org/viewvc/llvm-project?rev=44160&view=rev
Log:
Implement codegen of CXX Bool

Modified:
    cfe/trunk/CodeGen/CGExprScalar.cpp

Modified: cfe/trunk/CodeGen/CGExprScalar.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CodeGen/CGExprScalar.cpp?rev=44160&r1=44159&r2=44160&view=diff

==============================================================================
--- cfe/trunk/CodeGen/CGExprScalar.cpp (original)
+++ cfe/trunk/CodeGen/CGExprScalar.cpp Wed Nov 14 23:40:03 2007
@@ -100,6 +100,9 @@
   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(





More information about the cfe-commits mailing list