summaryrefslogtreecommitdiff
path: root/include/llvm/BasicBlock.h
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2009-03-09 07:09:01 +0000
committerGabor Greif <ggreif@gmail.com>2009-03-09 07:09:01 +0000
commit5c3e7b171898612066afc86b8fa850cc32a0cd40 (patch)
treef7dfa002740a61b5f15799b84cd8e9e7df711358 /include/llvm/BasicBlock.h
parentbf65de131f5093dc9080cb3eddf7dc0c3500e4a3 (diff)
downloadllvm-5c3e7b171898612066afc86b8fa850cc32a0cd40.tar.gz
llvm-5c3e7b171898612066afc86b8fa850cc32a0cd40.tar.bz2
llvm-5c3e7b171898612066afc86b8fa850cc32a0cd40.tar.xz
in builds without asserts we do not need to allocate the Next pointer in "ghostly" sentinels
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66415 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/BasicBlock.h')
-rw-r--r--include/llvm/BasicBlock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/BasicBlock.h b/include/llvm/BasicBlock.h
index 072f6152ea..d0bd25a0db 100644
--- a/include/llvm/BasicBlock.h
+++ b/include/llvm/BasicBlock.h
@@ -46,7 +46,7 @@ template<> struct ilist_traits<Instruction>
Instruction *ensureHead(Instruction*) const { return createSentinel(); }
static void noteHead(Instruction*, Instruction*) {}
private:
- mutable ilist_node<Instruction> Sentinel;
+ mutable ILIST_NODE<Instruction> Sentinel;
};
/// This represents a single basic block in LLVM. A basic block is simply a