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:
c010893
)
Add cast to Type*, fix failure from r327894.
author
Alina Sbirlea
<asbirlea@google.com>
Mon, 19 Mar 2018 20:05:01 +0000
(20:05 +0000)
committer
Alina Sbirlea
<asbirlea@google.com>
Mon, 19 Mar 2018 20:05:01 +0000
(20:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@327896
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/IR/Type.h
patch
|
blob
|
history
diff --git
a/include/llvm/IR/Type.h
b/include/llvm/IR/Type.h
index
0b0a10f
..
39a7976
100644
(file)
--- a/
include/llvm/IR/Type.h
+++ b/
include/llvm/IR/Type.h
@@
-410,7
+410,7
@@
public:
template <typename ScalarTy> static Type *getScalarTy(LLVMContext &C) {
int noOfBits = sizeof(ScalarTy) * CHAR_BIT;
if (std::is_integral<ScalarTy>::value) {
- return Type::getIntNTy(C, noOfBits);
+ return
(Type*)
Type::getIntNTy(C, noOfBits);
} else if (std::is_floating_point<ScalarTy>::value) {
switch (noOfBits) {
case 32: