summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/IR/Type.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/IR/Type.cpp b/lib/IR/Type.cpp
index 86f2d89dd3..b02509fcf3 100644
--- a/lib/IR/Type.cpp
+++ b/lib/IR/Type.cpp
@@ -132,7 +132,7 @@ unsigned Type::getPrimitiveSizeInBits() const {
/// getScalarSizeInBits - If this is a vector type, return the
/// getPrimitiveSizeInBits value for the element type. Otherwise return the
/// getPrimitiveSizeInBits value for this type.
-unsigned Type::getScalarSizeInBits() {
+unsigned Type::getScalarSizeInBits() const {
return getScalarType()->getPrimitiveSizeInBits();
}