projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7c5e6c
)
[JITLink] Silence a narrowing conversion warning.
author
Lang Hames
<lhames@gmail.com>
Sat, 20 Apr 2019 17:37:09 +0000
(17:37 +0000)
committer
Lang Hames
<lhames@gmail.com>
Sat, 20 Apr 2019 17:37:09 +0000
(17:37 +0000)
llvm-svn: 358821
llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h
b/llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h
index
1c9f7ef
..
cc4149a
100644
(file)
--- a/
llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h
+++ b/
llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h
@@
-381,7
+381,7
@@
public:
assert(!Parent.isZeroFill() && "Trying to get content for zero-fill atom");
assert(Size <= std::numeric_limits<size_t>::max() &&
"Content size too large");
- return {ContentPtr,
Size
};
+ return {ContentPtr,
static_cast<size_t>(Size)
};
}
void setContent(StringRef Content) {
assert(!Parent.isZeroFill() && "Calling setContent on zero-fill atom?");