Skip to content

Commit

Permalink
[Clang][Bundler][NFC] Replace SmallString<...> with StringRef
Browse files Browse the repository at this point in the history
Reviewers: ABataev

Reviewed By: ABataev

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D73738
  • Loading branch information
sndmitriev committed Jan 30, 2020
1 parent 1d9e08e commit 5be2ca2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -530,10 +530,10 @@ class ObjectFileHandler final : public FileHandler {

// Create an intermediate temporary file to save object after the first
// llvm-objcopy run.
Expected<SmallString<128u>> IntermediateObjOrErr = TempFiles.Create(None);
Expected<StringRef> IntermediateObjOrErr = TempFiles.Create(None);
if (!IntermediateObjOrErr)
return IntermediateObjOrErr.takeError();
const SmallString<128u> &IntermediateObj = *IntermediateObjOrErr;
StringRef IntermediateObj = *IntermediateObjOrErr;

// Compose llvm-objcopy command line for add target objects' sections.
BumpPtrAllocator Alloc;
Expand Down

0 comments on commit 5be2ca2

Please sign in to comment.