Rename: ProgramPoint::getContext() => ProgramPoint::getLocationContext().
llvm-svn: 79502
This commit is contained in:
parent
8b4d51af58
commit
068928b2a6
|
@ -111,7 +111,7 @@ public:
|
|||
ProgramPoint getLocation() const { return Location; }
|
||||
|
||||
const LocationContext *getLocationContext() const {
|
||||
return getLocation().getContext();
|
||||
return getLocation().getLocationContext();
|
||||
}
|
||||
|
||||
const GRState* getState() const {
|
||||
|
|
|
@ -73,7 +73,7 @@ protected:
|
|||
public:
|
||||
Kind getKind() const { return K; }
|
||||
|
||||
const LocationContext *getContext() const { return L; }
|
||||
const LocationContext *getLocationContext() const { return L; }
|
||||
|
||||
// For use with DenseMap. This hash is probably slow.
|
||||
unsigned getHashValue() const {
|
||||
|
|
|
@ -1213,7 +1213,7 @@ const Stmt* BugReport::getStmt() const {
|
|||
const Stmt *S = NULL;
|
||||
|
||||
if (BlockEntrance* BE = dyn_cast<BlockEntrance>(&ProgP)) {
|
||||
CFGBlock &Exit = ProgP.getContext()->getCFG()->getExit();
|
||||
CFGBlock &Exit = ProgP.getLocationContext()->getCFG()->getExit();
|
||||
if (BE->getBlock() == &Exit)
|
||||
S = GetPreviousStmt(EndNode);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue