summaryrefslogtreecommitdiff
path: root/lib/CodeGen
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
commit4c5be13890f723d78a92d4c96006f9102c4580a0 (patch)
treed6f524bc757db1ed8e389d078fad10e936f08670 /lib/CodeGen
parent2b272a1c8cb6d9f02223a598495d84cd9d75b13d (diff)
downloadllvm-4c5be13890f723d78a92d4c96006f9102c4580a0.tar.gz
llvm-4c5be13890f723d78a92d4c96006f9102c4580a0.tar.bz2
llvm-4c5be13890f723d78a92d4c96006f9102c4580a0.tar.xz
Recommit previous cleanup with a fix for c++98 ambiguity.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187752 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index b4bc61b724..1b9105d39b 100644
--- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/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.