Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
llvm-epi-0.8
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Roger Ferrer
llvm-epi-0.8
Commits
25c40e5a
Commit
25c40e5a
authored
12 years ago
by
Alexey Samsonov
Browse files
Options
Downloads
Patches
Plain Diff
[Sanitizer] Fix type for placement new on 32-bit Mac
llvm-svn: 158524
parent
768b41c1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
compiler-rt/lib/sanitizer_common/sanitizer_placement_new.h
+8
-6
8 additions, 6 deletions
compiler-rt/lib/sanitizer_common/sanitizer_placement_new.h
with
8 additions
and
6 deletions
compiler-rt/lib/sanitizer_common/sanitizer_placement_new.h
+
8
−
6
View file @
25c40e5a
...
@@ -18,14 +18,16 @@
...
@@ -18,14 +18,16 @@
#include
"sanitizer_internal_defs.h"
#include
"sanitizer_internal_defs.h"
#if __WORDSIZE == 64
namespace
__sanitizer
{
inline
void
*
operator
new
(
__sanitizer
::
uptr
sz
,
void
*
p
)
{
#if (__WORDSIZE == 64) || defined(__APPLE__)
return
p
;
typedef
__sanitizer
::
uptr
operator_new_ptr_type
;
}
#else
#else
inline
void
*
operator
new
(
__sanitizer
::
u32
sz
,
void
*
p
)
{
typedef
__sanitizer
::
u32
operator_new_ptr_type
;
#endif
}
// namespace __sanitizer
inline
void
*
operator
new
(
operator_new_ptr_type
sz
,
void
*
p
)
{
return
p
;
return
p
;
}
}
#endif
#endif // SANITIZER_PLACEMENT_NEW_H
#endif // SANITIZER_PLACEMENT_NEW_H
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment