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:
090cae8
)
Fix Wparentheses gcc warning. NFC.
author
Simon Pilgrim
<llvm-dev@redking.me.uk>
Wed, 29 Apr 2020 11:21:05 +0000
(12:21 +0100)
committer
Simon Pilgrim
<llvm-dev@redking.me.uk>
Wed, 29 Apr 2020 11:21:05 +0000
(12:21 +0100)
It should be either a float(32) or an int(32).
clang/lib/CodeGen/CGCall.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/CodeGen/CGCall.cpp
b/clang/lib/CodeGen/CGCall.cpp
index
7672d95
..
55f106e
100644
(file)
--- a/
clang/lib/CodeGen/CGCall.cpp
+++ b/
clang/lib/CodeGen/CGCall.cpp
@@
-3070,7
+3070,7
@@
llvm::Value *CodeGenFunction::EmitCMSEClearRecord(llvm::Value *Src,
llvm::Value *CodeGenFunction::EmitCMSEClearFP16(llvm::Value *Src) {
llvm::Type *RetTy = Src->getType();
assert(RetTy->isFloatTy() ||
-
RetTy->isIntegerTy() && RetTy->getIntegerBitWidth() == 32
);
+
(RetTy->isIntegerTy() && RetTy->getIntegerBitWidth() == 32)
);
if (RetTy->isFloatTy()) {
llvm::Value *T0 = Builder.CreateBitCast(Src, Builder.getIntNTy(32));
llvm::Value *T1 = Builder.CreateAnd(T0, 0xffff, "cmse.clear");