Add support for __builtin_expect which is needed for assert, 
among other things.

Also change a codegen warning to dump to stderr so it doesn't
mess with -emit-llvm output



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44497 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/CodeGen/CGBuiltin.cpp b/CodeGen/CGBuiltin.cpp
index 803d89e..52a41d8 100644
--- a/CodeGen/CGBuiltin.cpp
+++ b/CodeGen/CGBuiltin.cpp
@@ -97,6 +97,10 @@
     
     return RValue::get(Result);
   }
+  case Builtin::BI__builtin_expect: {
+    llvm::Value *Condition = EmitScalarExpr(E->getArg(0));   
+    return RValue::get(Condition);
+  }
   }
   
   return RValue::get(0);