diff options
Diffstat (limited to 'include/llvm/DataLayout.h')
-rw-r--r-- | include/llvm/DataLayout.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/include/llvm/DataLayout.h b/include/llvm/DataLayout.h index d778556684..dfacd9f32a 100644 --- a/include/llvm/DataLayout.h +++ b/include/llvm/DataLayout.h @@ -256,11 +256,7 @@ public: } /// Layout pointer size, in bits unsigned getPointerSizeInBits(unsigned AS) const { - DenseMap<unsigned, PointerAlignElem>::const_iterator val = Pointers.find(AS); - if (val == Pointers.end()) { - val = Pointers.find(0); - } - return 8*val->second.TypeBitWidth; + return getPointerSize(AS) * 8; } /// Layout pointer size, in bits, based on the type. /// If this function is called with a pointer type, then |