[llvm-branch-commits] [cfe-branch] r134806 - /cfe/branches/type-system-rewrite/lib/CodeGen/CGBuiltin.cpp
Chris Lattner
sabre at nondot.org
Sat Jul 9 00:10:31 PDT 2011
Author: lattner
Date: Sat Jul 9 02:10:31 2011
New Revision: 134806
URL: http://llvm.org/viewvc/llvm-project?rev=134806&view=rev
Log:
tweak merged code to work with new apis.
Modified:
cfe/branches/type-system-rewrite/lib/CodeGen/CGBuiltin.cpp
Modified: cfe/branches/type-system-rewrite/lib/CodeGen/CGBuiltin.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/type-system-rewrite/lib/CodeGen/CGBuiltin.cpp?rev=134806&r1=134805&r2=134806&view=diff
==============================================================================
--- cfe/branches/type-system-rewrite/lib/CodeGen/CGBuiltin.cpp (original)
+++ cfe/branches/type-system-rewrite/lib/CodeGen/CGBuiltin.cpp Sat Jul 9 02:10:31 2011
@@ -314,7 +314,7 @@
}
case Builtin::BI__builtin_expect: {
Value *ArgValue = EmitScalarExpr(E->getArg(0));
- const llvm::Type *ArgType = ArgValue->getType();
+ llvm::Type *ArgType = ArgValue->getType();
Value *FnExpect = CGM.getIntrinsic(Intrinsic::expect, &ArgType, 1);
Value *ExpectedValue = EmitScalarExpr(E->getArg(1));
@@ -998,7 +998,7 @@
case Builtin::BI__builtin_fmal: {
// Rewrite fma to intrinsic.
Value *FirstArg = EmitScalarExpr(E->getArg(0));
- const llvm::Type *ArgType = FirstArg->getType();
+ llvm::Type *ArgType = FirstArg->getType();
Value *F = CGM.getIntrinsic(Intrinsic::fma, &ArgType, 1);
return RValue::get(Builder.CreateCall3(F, FirstArg,
EmitScalarExpr(E->getArg(1)),
More information about the llvm-branch-commits
mailing list