diff options
author | Tim Northover <tnorthover@apple.com> | 2019-05-29 20:46:38 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2019-05-29 20:46:38 +0000 |
commit | 71ee3d02372af7361eda0b59163cf92653ac2bbb (patch) | |
tree | 6e62b423c129caa0b420c5e10382284d65898514 /llvm/lib/Bitcode/Writer/ValueEnumerator.cpp | |
parent | 4b281755ae4951ca83c287680b47d77433f3ee0a (diff) | |
download | llvm-71ee3d02372af7361eda0b59163cf92653ac2bbb.zip llvm-71ee3d02372af7361eda0b59163cf92653ac2bbb.tar.gz llvm-71ee3d02372af7361eda0b59163cf92653ac2bbb.tar.bz2 |
Revert "IR: add optional type to 'byval' function parameters"
The IRLinker doesn't delve into the new byval attribute when mapping types, and
this breaks LTO.
llvm-svn: 362029
Diffstat (limited to 'llvm/lib/Bitcode/Writer/ValueEnumerator.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Writer/ValueEnumerator.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp b/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp index 143570f..72d7000 100644 --- a/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp +++ b/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp @@ -949,11 +949,9 @@ void ValueEnumerator::incorporateFunction(const Function &F) { incorporateFunctionMetadata(F); // Adding function arguments to the value table. - for (const auto &I : F.args()) { + for (const auto &I : F.args()) EnumerateValue(&I); - if (I.hasAttribute(Attribute::ByVal) && I.getParamByValType()) - EnumerateType(I.getParamByValType()); - } + FirstFuncConstantID = Values.size(); // Add all function-level constants to the value table. |