diff options
author | Pengfei Wang <pengfei.wang@intel.com> | 2019-07-09 12:41:12 +0000 |
---|---|---|
committer | Pengfei Wang <pengfei.wang@intel.com> | 2019-07-09 12:41:12 +0000 |
commit | a50bbfc47027e4d6bb67dc713a82c9c8792d855e (patch) | |
tree | bf032bdf224508653c6186bbc8ab0db6dc525665 /clang/lib | |
parent | 13b204fee1ee8febc2e8028f63094e8fd45b93d9 (diff) | |
download | bcm5719-llvm-a50bbfc47027e4d6bb67dc713a82c9c8792d855e.tar.gz bcm5719-llvm-a50bbfc47027e4d6bb67dc713a82c9c8792d855e.zip |
[NFC] [X86] Fix scan-build complaining
Summary:
Remove unused variable. This fixes bug:
https://bugs.llvm.org/show_bug.cgi?id=42526
Signed-off-by: pengfei <pengfei.wang@intel.com>
Reviewers: RKSimon, xiangzhangllvm, craig.topper
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D64389
llvm-svn: 365473
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/CodeGen/CGBuiltin.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp index f566374420d..f21e02d79c9 100644 --- a/clang/lib/CodeGen/CGBuiltin.cpp +++ b/clang/lib/CodeGen/CGBuiltin.cpp @@ -11776,12 +11776,11 @@ Value *CodeGenFunction::EmitX86BuiltinExpr(unsigned BuiltinID, Value *Call = Builder.CreateCall(CGM.getIntrinsic(ID), {Ops[0], Ops[1]}); Value *Result = Builder.CreateExtractValue(Call, 0); Result = EmitX86MaskedCompareResult(*this, Result, NumElts, nullptr); - Value *Store = Builder.CreateDefaultAlignedStore(Result, Ops[2]); + Builder.CreateDefaultAlignedStore(Result, Ops[2]); Result = Builder.CreateExtractValue(Call, 1); Result = EmitX86MaskedCompareResult(*this, Result, NumElts, nullptr); - Store = Builder.CreateDefaultAlignedStore(Result, Ops[3]); - return Store; + return Builder.CreateDefaultAlignedStore(Result, Ops[3]); } case X86::BI__builtin_ia32_vpmultishiftqb128: |