aboutsummaryrefslogtreecommitdiff
path: root/CodeGen
diff options
context:
space:
mode:
Diffstat (limited to 'CodeGen')
-rw-r--r--CodeGen/CGBuiltin.cpp4
-rw-r--r--CodeGen/CGStmt.cpp2
2 files changed, 5 insertions, 1 deletions
diff --git a/CodeGen/CGBuiltin.cpp b/CodeGen/CGBuiltin.cpp
index 803d89ee54..52a41d8533 100644
--- a/CodeGen/CGBuiltin.cpp
+++ b/CodeGen/CGBuiltin.cpp
@@ -97,6 +97,10 @@ RValue CodeGenFunction::EmitBuiltinExpr(unsigned BuiltinID, const CallExpr *E) {
return RValue::get(Result);
}
+ case Builtin::BI__builtin_expect: {
+ llvm::Value *Condition = EmitScalarExpr(E->getArg(0));
+ return RValue::get(Condition);
+ }
}
return RValue::get(0);
diff --git a/CodeGen/CGStmt.cpp b/CodeGen/CGStmt.cpp
index 9059a83119..b010e81009 100644
--- a/CodeGen/CGStmt.cpp
+++ b/CodeGen/CGStmt.cpp
@@ -38,7 +38,7 @@ void CodeGenFunction::EmitStmt(const Stmt *S) {
else
EmitAggExpr(E, 0, false);
} else {
- printf("Unimplemented stmt!\n");
+ fprintf(stderr, "Unimplemented stmt!\n");
S->dump(getContext().SourceMgr);
}
break;