summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2008-02-20 21:15:19 +0000
committerDale Johannesen <dalej@apple.com>2008-02-20 21:15:19 +0000
commit965155affbf61404438a99e3c249313d1bb2abb1 (patch)
tree3ef4556a2753d08e8d31ccd5b87c6a3e92c6800a /llvm/lib/Bitcode
parentb6b69208ba2bb243b494991d34ea15e3f8e87e52 (diff)
downloadbcm5719-llvm-965155affbf61404438a99e3c249313d1bb2abb1.tar.gz
bcm5719-llvm-965155affbf61404438a99e3c249313d1bb2abb1.zip
Support alignment within ParamAttrs in the I/O handling.
llvm-svn: 47401
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 3f7cfcc2095..fe013e81569 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((uint16_t)A->getParamAttrsAtIndex(op));
+ Record.push_back(A->getParamAttrsAtIndex(op));
}
Stream.EmitRecord(bitc::PARAMATTR_CODE_ENTRY, Record);
OpenPOWER on IntegriCloud