diff options
author | Ted Kremenek <kremenek@apple.com> | 2011-08-17 21:04:19 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2011-08-17 21:04:19 +0000 |
commit | c14efa71220dd2c2205b33f2cc5f3c6983549f6b (patch) | |
tree | a2f08cda44a109558f803c1a7e08579113c391d9 /clang/lib/CodeGen/CGBuiltin.cpp | |
parent | 2dfbcc45064b8e5d0a6fe8ea792cd7e092839156 (diff) | |
download | bcm5719-llvm-c14efa71220dd2c2205b33f2cc5f3c6983549f6b.tar.gz bcm5719-llvm-c14efa71220dd2c2205b33f2cc5f3c6983549f6b.zip |
Fix a handful of dead stores found by Clang's static analyzer. There's a bunch of others I haven't touched.
llvm-svn: 137867
Diffstat (limited to 'clang/lib/CodeGen/CGBuiltin.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGBuiltin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp index 56efe930fe2..70652d8cd07 100644 --- a/clang/lib/CodeGen/CGBuiltin.cpp +++ b/clang/lib/CodeGen/CGBuiltin.cpp @@ -2109,8 +2109,8 @@ Value *CodeGenFunction::EmitX86BuiltinExpr(unsigned BuiltinID, llvm::Type *PtrTy = Int8PtrTy; Value *One = llvm::ConstantInt::get(Int32Ty, 1); Value *Tmp = Builder.CreateAlloca(Int32Ty, One, "tmp"); - One = Builder.CreateCall(CGM.getIntrinsic(Intrinsic::x86_sse_stmxcsr), - Builder.CreateBitCast(Tmp, PtrTy)); + Builder.CreateCall(CGM.getIntrinsic(Intrinsic::x86_sse_stmxcsr), + Builder.CreateBitCast(Tmp, PtrTy)); return Builder.CreateLoad(Tmp, "stmxcsr"); } case X86::BI__builtin_ia32_cmppd: { |