summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/profile/InstrProfilingUtil.c
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2017-08-15 03:13:01 +0000
committerXinliang David Li <davidxl@google.com>2017-08-15 03:13:01 +0000
commit1c9320cd4d970ebbb2830d5c73a5120a53ffbd5c (patch)
tree873570ec2024918760766ce6c6df3bd3df0d0293 /compiler-rt/lib/profile/InstrProfilingUtil.c
parent7a3da86823fb4bea6c80f9d7f972b3dc944acf19 (diff)
downloadbcm5719-llvm-1c9320cd4d970ebbb2830d5c73a5120a53ffbd5c.tar.gz
bcm5719-llvm-1c9320cd4d970ebbb2830d5c73a5120a53ffbd5c.zip
Revert r310857 due to internal test failure
llvm-svn: 310907
Diffstat (limited to 'compiler-rt/lib/profile/InstrProfilingUtil.c')
-rw-r--r--compiler-rt/lib/profile/InstrProfilingUtil.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler-rt/lib/profile/InstrProfilingUtil.c b/compiler-rt/lib/profile/InstrProfilingUtil.c
index bed97e52689..fb68f30a5e1 100644
--- a/compiler-rt/lib/profile/InstrProfilingUtil.c
+++ b/compiler-rt/lib/profile/InstrProfilingUtil.c
@@ -196,8 +196,7 @@ lprofApplyPathPrefix(char *Dest, const char *PathStr, const char *Prefix,
memcpy(Dest, Prefix, PrefixLen);
- if (!IS_DIR_SEPARATOR(Prefix[PrefixLen - 1]) &&
- !IS_DIR_SEPARATOR(StrippedPathStr[0]))
+ if (!IS_DIR_SEPARATOR(Prefix[PrefixLen - 1]))
Dest[PrefixLen++] = DIR_SEPARATOR;
memcpy(Dest + PrefixLen, StrippedPathStr, strlen(StrippedPathStr) + 1);
OpenPOWER on IntegriCloud