Remove a redundant assignment to the FDecl variable from *inside* it's
initializer.
I really feel like Clang should warn about this, but I can't describe
a good reason. GCC will warn on this in some cases under
-Wsequence-point, but it actually seems like a false positive for that
warning....
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159631 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp
index 7342128..87acd1e 100644
--- a/lib/Sema/SemaDeclObjC.cpp
+++ b/lib/Sema/SemaDeclObjC.cpp
@@ -273,7 +273,7 @@
assert((getCurMethodDecl() == 0 && getCurFunctionDecl() == 0) &&
"Method/c-function parsing confused");
if (!parseMethod) {
- FunctionDecl *FDecl = FDecl = dyn_cast_or_null<FunctionDecl>(D);
+ FunctionDecl *FDecl = dyn_cast_or_null<FunctionDecl>(D);
// If we don't have a valid c-function decl, simply return.
if (!FDecl)
return;