r228255 - Silence a warning.

Sean Silva chisophugis at gmail.com
Wed Feb 4 17:20:26 PST 2015


Author: silvas
Date: Wed Feb  4 19:20:26 2015
New Revision: 228255

URL: http://llvm.org/viewvc/llvm-project?rev=228255&view=rev
Log:
Silence a warning.

/Users/Sean/pg/llvm/tools/clang/lib/CodeGen/CGException.cpp:1871:23: warning: unused variable 'Finally' [-Wunused-variable]
  if (SEHFinallyStmt *Finally = S.getFinallyHandler()) {
                      ^
1 warning generated.

Modified:
    cfe/trunk/lib/CodeGen/CGException.cpp

Modified: cfe/trunk/lib/CodeGen/CGException.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGException.cpp?rev=228255&r1=228254&r2=228255&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGException.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGException.cpp Wed Feb  4 19:20:26 2015
@@ -1868,7 +1868,7 @@ llvm::Value *CodeGenFunction::EmitSEHAbn
 }
 
 void CodeGenFunction::EnterSEHTryStmt(const SEHTryStmt &S, SEHFinallyInfo &FI) {
-  if (SEHFinallyStmt *Finally = S.getFinallyHandler()) {
+  if (S.getFinallyHandler()) {
     // Push a cleanup for __finally blocks.
     EHStack.pushCleanup<PerformSEHFinally>(NormalAndEHCleanup, &FI);
     return;





More information about the cfe-commits mailing list