summaryrefslogtreecommitdiff
path: root/llvm/lib/Support/SHA256.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Support/SHA256.cpp')
-rw-r--r--llvm/lib/Support/SHA256.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/SHA256.cpp b/llvm/lib/Support/SHA256.cpp
index b1c07f83b68f..a8019002499c 100644
--- a/llvm/lib/Support/SHA256.cpp
+++ b/llvm/lib/Support/SHA256.cpp
@@ -250,7 +250,7 @@ void SHA256::final(std::array<uint32_t, HASH_LENGTH / 4> &HashResult) {
} else {
// Swap byte order back
for (int i = 0; i < 8; i++) {
- HashResult[i] = sys::getSwappedBytes(InternalState.State[i]);
+ HashResult[i] = llvm::byteswap(InternalState.State[i]);
}
}
}