summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2008-02-19 21:38:47 +0000
committerDale Johannesen <dalej@apple.com>2008-02-19 21:38:47 +0000
commit89268bc6e2c11c951d1c37f100696bff48d58fbf (patch)
tree7a654c3dd76155923833fd2ae7636110938cf813 /llvm/lib/Bitcode
parent4ae998528531ad6719d3503fce1e72e5a4d589b6 (diff)
downloadbcm5719-llvm-89268bc6e2c11c951d1c37f100696bff48d58fbf.tar.gz
bcm5719-llvm-89268bc6e2c11c951d1c37f100696bff48d58fbf.zip
Expand ParameterAttributes to 32 bits (in preparation
for adding alignment info, not there yet). Clean up interfaces to reference ParameterAttributes consistently. llvm-svn: 47342
Diffstat (limited to 'llvm/lib/Bitcode')
-rw-r--r--llvm/lib/Bitcode/Writer/BitcodeWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
index fe013e81569..3f7cfcc2095 100644
--- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
@@ -119,7 +119,7 @@ static void WriteParamAttrTable(const ValueEnumerator &VE,
const ParamAttrsList *A = Attrs[i];
for (unsigned op = 0, e = A->size(); op != e; ++op) {
Record.push_back(A->getParamIndex(op));
- Record.push_back(A->getParamAttrsAtIndex(op));
+ Record.push_back((uint16_t)A->getParamAttrsAtIndex(op));
}
Stream.EmitRecord(bitc::PARAMATTR_CODE_ENTRY, Record);
OpenPOWER on IntegriCloud