]> granicus.if.org Git - clang/commitdiff
Based on usage, the NamedDecl is always set when constructing a CallingContext, but...
authorAaron Ballman <aaron@aaronballman.com>
Thu, 6 Mar 2014 19:37:24 +0000 (19:37 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Thu, 6 Mar 2014 19:37:24 +0000 (19:37 +0000)
No functional changes intended.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203149 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/ThreadSafety.cpp

index c21254708d682ead23ac99ffa12e657a2f96a4e6..6e9845db34b0c19fe708f4cdf053961ed2a94b67 100644 (file)
@@ -172,12 +172,9 @@ private:
     const Expr* const* FunArgs;    // Function arguments
     CallingContext*    PrevCtx;    // The previous context; or 0 if none.
 
-    CallingContext(const NamedDecl *D = 0, const Expr *S = 0,
-                   unsigned N = 0, const Expr* const *A = 0,
-                   CallingContext *P = 0)
-      : AttrDecl(D), SelfArg(S), SelfArrow(false),
-        NumArgs(N), FunArgs(A), PrevCtx(P)
-    { }
+    CallingContext(const NamedDecl *D)
+        : AttrDecl(D), SelfArg(0), SelfArrow(false), NumArgs(0), FunArgs(0),
+          PrevCtx(0) {}
   };
 
   typedef SmallVector<SExprNode, 4> NodeVector;