]> granicus.if.org Git - clang/commitdiff
Remove dead code.
authorZhongxing Xu <xuzhongxing@gmail.com>
Mon, 10 Jan 2011 11:28:29 +0000 (11:28 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Mon, 10 Jan 2011 11:28:29 +0000 (11:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123168 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Analysis/AnalysisContext.h

index 35f394f957c7df49c261cd72efcfc94d2663ee4e..42a5e9f848091c768d57ba28ffb95af77872e54e 100644 (file)
@@ -199,8 +199,7 @@ public:
 };
 
 class StackFrameContext : public LocationContext {
-  // The callsite where this stack frame is established. The int bit indicates
-  // whether the call expr should return an l-value when it has reference type.
+  // The callsite where this stack frame is established.
   const Stmt *CallSite;
 
   // The parent block of the callsite.
@@ -221,12 +220,6 @@ public:
 
   const Stmt *getCallSite() const { return CallSite; }
 
-  bool evalAsLValue() const {
-    if (const Expr *CE = dyn_cast<Expr>(CallSite))
-      return CE->isLValue();
-    return false;
-  }
-
   const CFGBlock *getCallSiteBlock() const { return Block; }
 
   unsigned getIndex() const { return Index; }