diff options
author | David Blaikie <dblaikie@gmail.com> | 2015-04-17 16:28:26 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2015-04-17 16:28:26 +0000 |
commit | 561a1572338ec08e2a47287001bc55e954bab2e6 (patch) | |
tree | 2177d958dc239a568190c52cbee31cf8acf7b5a2 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | c9c3d228d64d399da5959665c02c1cae0b834a62 (diff) | |
download | llvm-561a1572338ec08e2a47287001bc55e954bab2e6.zip llvm-561a1572338ec08e2a47287001bc55e954bab2e6.tar.gz llvm-561a1572338ec08e2a47287001bc55e954bab2e6.tar.bz2 |
[opaque pointer type] Serialize the type of an llvm::Function as a function type rather than a function pointer type
llvm-svn: 235200
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index bfcaac1..aace5e16 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -690,7 +690,7 @@ static void WriteModuleInfo(const Module *M, const ValueEnumerator &VE, // FUNCTION: [type, callingconv, isproto, linkage, paramattrs, alignment, // section, visibility, gc, unnamed_addr, prologuedata, // dllstorageclass, comdat, prefixdata] - Vals.push_back(VE.getTypeID(F.getType())); + Vals.push_back(VE.getTypeID(F.getFunctionType())); Vals.push_back(F.getCallingConv()); Vals.push_back(F.isDeclaration()); Vals.push_back(getEncodedLinkage(F)); |