aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/ProgramPoint.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-04-26 15:19:51 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-04-26 15:19:51 +0000
commit6e5977f0a8a680191fb4b4d8f32bc2c629faf0c2 (patch)
tree1693063602fb55daf485d20bf8e620d9197a1e60 /lib/Analysis/ProgramPoint.cpp
parentdc34300db91139cf25bec65f1a0861a286f97b17 (diff)
Make assertions for all addresses passed to ProgramPoint that they have at least an 8-byte alignment.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50310 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/ProgramPoint.cpp')
-rw-r--r--lib/Analysis/ProgramPoint.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/Analysis/ProgramPoint.cpp b/lib/Analysis/ProgramPoint.cpp
index c089e48698..d95680ff38 100644
--- a/lib/Analysis/ProgramPoint.cpp
+++ b/lib/Analysis/ProgramPoint.cpp
@@ -19,15 +19,14 @@ using namespace clang;
BlockEdge::BlockEdge(CFG& cfg, const CFGBlock* B1, const CFGBlock* B2) {
if (B1->succ_size() == 1) {
assert (*(B1->succ_begin()) == B2);
- Data = reinterpret_cast<uintptr_t>(B1) | BlockEdgeSrcKind;
+ setRawData(B1, BlockEdgeSrcKind);
}
else if (B2->pred_size() == 1) {
assert (*(B2->pred_begin()) == B1);
- Data = reinterpret_cast<uintptr_t>(B2) | BlockEdgeDstKind;
+ setRawData(B2, BlockEdgeDstKind);
}
else
- Data = reinterpret_cast<uintptr_t>(cfg.getBlockEdgeImpl(B1,B2))
- | BlockEdgeAuxKind;
+ setRawData(cfg.getBlockEdgeImpl(B1,B2), BlockEdgeAuxKind);
}
CFGBlock* BlockEdge::getSrc() const {