Fix last commit.

llvm-svn: 188724
This commit is contained in:
Juergen Ributzka 2013-08-19 23:08:53 +00:00
parent b4eb6adebb
commit 53e2f275d2
1 changed files with 1 additions and 1 deletions

View File

@ -2932,7 +2932,7 @@ Value *CodeGenFunction::EmitX86BuiltinExpr(unsigned BuiltinID,
Builder.CreateBitCast(Tmp, Int8PtrTy));
}
case X86::BI__builtin_ia32_stmxcsr: {
Value *Tmp = CreateMemTemp(E->getArg(0)->getType());
Value *Tmp = CreateMemTemp(E->getType());
Builder.CreateCall(CGM.getIntrinsic(Intrinsic::x86_sse_stmxcsr),
Builder.CreateBitCast(Tmp, Int8PtrTy));
return Builder.CreateLoad(Tmp, "stmxcsr");