diff options
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 f53fbd7..e991d05 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -5152,7 +5152,7 @@ void llvm::embedBitcodeInModule(llvm::Module &M, llvm::MemoryBufferRef Buf,    // Save llvm.compiler.used and remove it.    SmallVector<Constant *, 2> UsedArray;    SmallVector<GlobalValue *, 4> UsedGlobals; -  Type *UsedElementType = Type::getInt8Ty(M.getContext())->getPointerTo(0); +  Type *UsedElementType = Type::getInt8PtrTy(M.getContext());    GlobalVariable *Used = collectUsedGlobalVariables(M, UsedGlobals, true);    for (auto *GV : UsedGlobals) {      if (GV->getName() != "llvm.embedded.module" &&  | 
