[llvm] r283927 - Silence -Wunused-but-set-variable warning
Arnold Schwaighofer via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 11 12:49:29 PDT 2016
Author: arnolds
Date: Tue Oct 11 14:49:29 2016
New Revision: 283927
URL: http://llvm.org/viewvc/llvm-project?rev=283927&view=rev
Log:
Silence -Wunused-but-set-variable warning
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp?rev=283927&r1=283926&r2=283927&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Tue Oct 11 14:49:29 2016
@@ -1168,6 +1168,7 @@ static void setupSwiftErrorVals(const Fu
if (AI->hasSwiftErrorAttr()) {
assert(!HaveSeenSwiftErrorArg &&
"Must have only one swifterror parameter");
+ (void)HaveSeenSwiftErrorArg; // silence warning.
HaveSeenSwiftErrorArg = true;
FuncInfo->SwiftErrorArg = &*AI;
FuncInfo->SwiftErrorVals.push_back(&*AI);
More information about the llvm-commits
mailing list