diff options
author | Haojian Wu <hokein@google.com> | 2017-10-13 15:37:53 +0000 |
---|---|---|
committer | Haojian Wu <hokein@google.com> | 2017-10-13 15:37:53 +0000 |
commit | 5b5c81f683a6e8b755fee836b7259ec639800b47 (patch) | |
tree | ed7e2af8a315d32ea0ed1ad22ad40fce1e2b9d22 /clang/lib/CodeGen/CGClass.cpp | |
parent | 2fe98c2b375b3d2d11574df0edaa132199cad0ab (diff) | |
download | bcm5719-llvm-5b5c81f683a6e8b755fee836b7259ec639800b47.tar.gz bcm5719-llvm-5b5c81f683a6e8b755fee836b7259ec639800b47.zip |
Fix an unused-variable warning.
llvm-svn: 315689
Diffstat (limited to 'clang/lib/CodeGen/CGClass.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGClass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGClass.cpp b/clang/lib/CodeGen/CGClass.cpp index 60a99367532..3b8209f0640 100644 --- a/clang/lib/CodeGen/CGClass.cpp +++ b/clang/lib/CodeGen/CGClass.cpp @@ -1516,7 +1516,7 @@ namespace { llvm::Value *LoadThisForDtorDelete(CodeGenFunction &CGF, const CXXDestructorDecl *DD) { if (Expr *ThisArg = DD->getOperatorDeleteThisArg()) - return CGF.EmitScalarExpr(DD->getOperatorDeleteThisArg()); + return CGF.EmitScalarExpr(ThisArg); return CGF.LoadCXXThis(); } |