OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c66c71
)
[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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358821
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ExecutionEngine/JITLink/JITLink.h
patch
|
blob
|
history
diff --git
a/include/llvm/ExecutionEngine/JITLink/JITLink.h
b/include/llvm/ExecutionEngine/JITLink/JITLink.h
index
1c9f7ef
..
cc4149a
100644
(file)
--- a/
include/llvm/ExecutionEngine/JITLink/JITLink.h
+++ b/
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?");