aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-offload-binary
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/llvm-offload-binary')
-rw-r--r--llvm/tools/llvm-offload-binary/llvm-offload-binary.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/tools/llvm-offload-binary/llvm-offload-binary.cpp b/llvm/tools/llvm-offload-binary/llvm-offload-binary.cpp
index b1bc335..e22d13b 100644
--- a/llvm/tools/llvm-offload-binary/llvm-offload-binary.cpp
+++ b/llvm/tools/llvm-offload-binary/llvm-offload-binary.cpp
@@ -92,10 +92,9 @@ static Error bundleImages() {
StringSaver Saver(Alloc);
DenseMap<StringRef, StringRef> Args = getImageArguments(Image, Saver);
- if (!Args.count("triple") || !Args.count("file"))
- return createStringError(
- inconvertibleErrorCode(),
- "'file' and 'triple' are required image arguments");
+ if (!Args.count("file"))
+ return createStringError(inconvertibleErrorCode(),
+ "'file' is a required image arguments");
// Permit using multiple instances of `file` in a single string.
for (auto &File : llvm::split(Args["file"], ",")) {