diff options
| author | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-07-19 01:31:21 +0000 |
|---|---|---|
| committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-07-19 01:31:21 +0000 |
| commit | 84f65e0692465aebcac5c31744f45ff386dc71e1 (patch) | |
| tree | b66366f2c9375b414b0d4b568922fe5c243bfebe /clang/lib/Checker/GRCoreEngine.cpp | |
| parent | e38764c66cab1db9330435fc0b06c5a7474e4f01 (diff) | |
| download | bcm5719-llvm-84f65e0692465aebcac5c31744f45ff386dc71e1.tar.gz bcm5719-llvm-84f65e0692465aebcac5c31744f45ff386dc71e1.zip | |
Reapply r108617.
llvm-svn: 108668
Diffstat (limited to 'clang/lib/Checker/GRCoreEngine.cpp')
| -rw-r--r-- | clang/lib/Checker/GRCoreEngine.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/clang/lib/Checker/GRCoreEngine.cpp b/clang/lib/Checker/GRCoreEngine.cpp index a816186a307..df790e304a4 100644 --- a/clang/lib/Checker/GRCoreEngine.cpp +++ b/clang/lib/Checker/GRCoreEngine.cpp @@ -227,8 +227,8 @@ bool GRCoreEngine::ExecuteWorkList(const LocationContext *L, unsigned Steps) { void GRCoreEngine::HandleCallEnter(const CallEnter &L, const CFGBlock *Block, unsigned Index, ExplodedNode *Pred) { - GRCallEnterNodeBuilder Builder(*this, Pred, L.getCallExpr(), L.getCallee(), - Block, Index); + GRCallEnterNodeBuilder Builder(*this, Pred, L.getCallExpr(), + L.getCalleeContext(), Block, Index); ProcessCallEnter(Builder); } @@ -692,6 +692,12 @@ void GREndPathNodeBuilder::GenerateCallExitNode(const GRState *state) { void GRCallEnterNodeBuilder::GenerateNode(const GRState *state, const LocationContext *LocCtx) { + // Check if the callee is in the same translation unit. + if (CalleeCtx->getTranslationUnit() != + Pred->getLocationContext()->getTranslationUnit()) { + assert(0 && "to be implemented"); + } + // Get the callee entry block. const CFGBlock *Entry = &(LocCtx->getCFG()->getEntry()); assert(Entry->empty()); |

