[lld] r194089 - Remove extraneous parentheses.
Rui Ueyama
ruiu at google.com
Tue Nov 5 10:43:11 PST 2013
Author: ruiu
Date: Tue Nov 5 12:43:10 2013
New Revision: 194089
URL: http://llvm.org/viewvc/llvm-project?rev=194089&view=rev
Log:
Remove extraneous parentheses.
Modified:
lld/trunk/lib/Driver/GnuLdDriver.cpp
Modified: lld/trunk/lib/Driver/GnuLdDriver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Driver/GnuLdDriver.cpp?rev=194089&r1=194088&r2=194089&view=diff
==============================================================================
--- lld/trunk/lib/Driver/GnuLdDriver.cpp (original)
+++ lld/trunk/lib/Driver/GnuLdDriver.cpp Tue Nov 5 12:43:10 2013
@@ -256,15 +256,13 @@ bool GnuLdDriver::parse(int argc, const
case OPT_start_group: {
std::unique_ptr<InputElement> controlStart(new ELFGroup(*ctx, index++));
controlNodeStack.push(controlStart.get());
- (dyn_cast<ControlNode>)(controlNodeStack.top())
- ->processControlEnter();
+ dyn_cast<ControlNode>(controlNodeStack.top())->processControlEnter();
inputGraph->addInputElement(std::move(controlStart));
break;
}
case OPT_end_group:
- (dyn_cast<ControlNode>)(controlNodeStack.top())
- ->processControlExit();
+ dyn_cast<ControlNode>(controlNodeStack.top())->processControlExit();
controlNodeStack.pop();
break;
@@ -276,7 +274,7 @@ bool GnuLdDriver::parse(int argc, const
if (controlNodeStack.empty())
inputGraph->addInputElement(std::move(inputFile));
else
- (dyn_cast<ControlNode>)(controlNodeStack.top())
+ dyn_cast<ControlNode>(controlNodeStack.top())
->processInputElement(std::move(inputFile));
break;
}
More information about the llvm-commits
mailing list