]> granicus.if.org Git - clang/commit
Bug fix in CFG::getBlockEdgeImpl(): Use a BumpPtrAllocator to allocate
authorTed Kremenek <kremenek@apple.com>
Mon, 28 Apr 2008 18:00:46 +0000 (18:00 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 28 Apr 2008 18:00:46 +0000 (18:00 +0000)
commit274f4334f6dd35239e5c3d4b86198f7f5804b059
tree89b8aaf651311823ff8e0a1b7bae37fa59166c0d
parentff871444421ad9fb8e7ddb73bc422912d9b0ee53
Bug fix in CFG::getBlockEdgeImpl(): Use a BumpPtrAllocator to allocate
std::pair<CFGBlock*, CFGBlock*> that have an 8-byte alignment for use with
ProgramPoint. This fixes a bug reported by Argiris where using std::set<> on
Windows would result in a 4-byte alignment, not an 8-byte alignment.

Fixes: <rdar://problem/5892265>
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50364 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/CFG.h
lib/AST/CFG.cpp