Generate code for __builtin_classify_type.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43429 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/CodeGen/CGBuiltin.cpp b/CodeGen/CGBuiltin.cpp
index 2ca84e2..ecac12b 100644
--- a/CodeGen/CGBuiltin.cpp
+++ b/CodeGen/CGBuiltin.cpp
@@ -63,7 +63,15 @@
 
     return RValue::get(V);
   }
+  case Builtin::BI__builtin_classify_type: {
+    llvm::APSInt Result(32);
+    
+    if (!E->isBuiltinClassifyType(Result))
+      assert(0 && "Expr not __builtin_classify_type!");
+    
+    return RValue::get(llvm::ConstantInt::get(Result));
   }
-      
+  }
+  
   return RValue::get(0);
 }