r188724 - Fix last commit.
Juergen Ributzka
juergen at apple.com
Mon Aug 19 16:08:53 PDT 2013
Author: ributzka
Date: Mon Aug 19 18:08:53 2013
New Revision: 188724
URL: http://llvm.org/viewvc/llvm-project?rev=188724&view=rev
Log:
Fix last commit.
Modified:
cfe/trunk/lib/CodeGen/CGBuiltin.cpp
Modified: cfe/trunk/lib/CodeGen/CGBuiltin.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGBuiltin.cpp?rev=188724&r1=188723&r2=188724&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGBuiltin.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGBuiltin.cpp Mon Aug 19 18:08:53 2013
@@ -2932,7 +2932,7 @@ Value *CodeGenFunction::EmitX86BuiltinEx
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");
More information about the cfe-commits
mailing list