aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/ELFAttributeParser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Support/ELFAttributeParser.cpp')
-rw-r--r--llvm/lib/Support/ELFAttributeParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/ELFAttributeParser.cpp b/llvm/lib/Support/ELFAttributeParser.cpp
index df955cdf5d30..2a30794bc1e9 100644
--- a/llvm/lib/Support/ELFAttributeParser.cpp
+++ b/llvm/lib/Support/ELFAttributeParser.cpp
@@ -200,7 +200,7 @@ Error ELFAttributeParser::parse(ArrayRef<uint8_t> section,
// Unrecognized format-version.
uint8_t formatVersion = de.getU8(cursor);
- if (formatVersion != 'A')
+ if (formatVersion != ELFAttrs::Format_Version)
return createStringError(errc::invalid_argument,
"unrecognized format-version: 0x" +
utohexstr(formatVersion));