Re-enable an assertion that I mistakenly removed.
llvm-svn: 59348
This commit is contained in:
		
							parent
							
								
									2c10b22b62
								
							
						
					
					
						commit
						ac172fc574
					
				| 
						 | 
					@ -870,13 +870,7 @@ void GRExprEngine::VisitDeclRefExpr(DeclRefExpr* Ex, NodeTy* Pred, NodeSet& Dst,
 | 
				
			||||||
    return;
 | 
					    return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  } else if (const FunctionDecl* FD = dyn_cast<FunctionDecl>(D)) {
 | 
					  } else if (const FunctionDecl* FD = dyn_cast<FunctionDecl>(D)) {
 | 
				
			||||||
    // FIXME: Does this need to be revised?  We were getting cases in
 | 
					    assert(asLValue);
 | 
				
			||||||
    //  real code that did this.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // FIXME: This is not a valid assertion.  Produce a test case that
 | 
					 | 
				
			||||||
    // refutes it.
 | 
					 | 
				
			||||||
    // assert(asLValue); // Can we assume this?
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    SVal V = loc::FuncVal(FD);
 | 
					    SVal V = loc::FuncVal(FD);
 | 
				
			||||||
    MakeNode(Dst, Ex, Pred, BindExpr(St, Ex, V));
 | 
					    MakeNode(Dst, Ex, Pred, BindExpr(St, Ex, V));
 | 
				
			||||||
    return;
 | 
					    return;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue