Skip to content

Commit

Permalink
[NFC] [X86] Fix scan-build complaining
Browse files Browse the repository at this point in the history
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
  • Loading branch information
phoebewang committed Jul 9, 2019
1 parent 13b204f commit a50bbfc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions clang/lib/CodeGen/CGBuiltin.cpp
Expand Up @@ -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:
Expand Down

0 comments on commit a50bbfc

Please sign in to comment.