diff options
| author | Chris Lattner <sabre@nondot.org> | 2008-06-17 18:05:57 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2008-06-17 18:05:57 +0000 |
| commit | 5696e7badf181efd93355bd55718f422252362b0 (patch) | |
| tree | 9562bea195fea80d837014b9707e87a8fab94013 /clang/lib/Analysis/LiveVariables.cpp | |
| parent | 5e4188f1acd814dff1f2155c05576f8892223c40 (diff) | |
| download | llvm-5696e7badf181efd93355bd55718f422252362b0.zip llvm-5696e7badf181efd93355bd55718f422252362b0.tar.gz llvm-5696e7badf181efd93355bd55718f422252362b0.tar.bz2 | |
Change self/_cmd to be instances of ImplicitParamDecl instead of ParmVarDecl.
Patch by David Chisnall!
llvm-svn: 52422
Diffstat (limited to 'clang/lib/Analysis/LiveVariables.cpp')
| -rw-r--r-- | clang/lib/Analysis/LiveVariables.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/Analysis/LiveVariables.cpp b/clang/lib/Analysis/LiveVariables.cpp index 4148d9e..54e2195 100644 --- a/clang/lib/Analysis/LiveVariables.cpp +++ b/clang/lib/Analysis/LiveVariables.cpp @@ -60,6 +60,11 @@ public: AD.AlwaysLive(*I, AD) = Alive; } + void VisitImplicitParamDecl(ImplicitParamDecl* IPD) { + // Register the VarDecl for tracking. + AD.Register(IPD); + } + void VisitVarDecl(VarDecl* VD) { // Register the VarDecl for tracking. AD.Register(VD); |
