summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-08-05 22:32:28 +0000
committerEric Christopher <echristo@gmail.com>2013-08-05 22:32:28 +0000
commit0062f2edc096a69d312ab1ed6977f897bfedd5f5 (patch)
tree6fb901c2a4db05ddb0135a29894c86b2c37002d2 /llvm/lib
parent0db0ca4364b670fb6a209b8d9b0030177db21d3b (diff)
downloadbcm5719-llvm-0062f2edc096a69d312ab1ed6977f897bfedd5f5.tar.gz
bcm5719-llvm-0062f2edc096a69d312ab1ed6977f897bfedd5f5.zip
Recommit previous cleanup with a fix for c++98 ambiguity.
llvm-svn: 187752
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index b4bc61b7243..1b9105d39b6 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -988,11 +988,8 @@ static StringRef getDIEStringAttr(DIE *Die, unsigned Attr) {
/// a trailing NULL with the string.
static void addStringToHash(MD5 &Hash, StringRef Str) {
DEBUG(dbgs() << "Adding string " << Str << " to hash.\n");
- HashValue SVal((const uint8_t *)Str.data(), Str.size());
- const uint8_t NB = '\0';
- HashValue NBVal((const uint8_t *)&NB, 1);
- Hash.update(SVal);
- Hash.update(NBVal);
+ Hash.update(Str);
+ Hash.update(makeArrayRef((uint8_t)'\0'));
}
// FIXME: These are copied and only slightly modified out of LEB128.h.
OpenPOWER on IntegriCloud