diff options
author | Jeffrey Yasskin <jyasskin@google.com> | 2010-12-23 00:58:24 +0000 |
---|---|---|
committer | Jeffrey Yasskin <jyasskin@google.com> | 2010-12-23 00:58:24 +0000 |
commit | 8e68c3873549ca31533e2e3e40dda3a43cb79566 (patch) | |
tree | 66cf9b65eff62b5ad43e27bb1751a6118ed971a2 /lib/Analysis/ConstantFolding.cpp | |
parent | 65e43a259ff532f66ff1f04bd5d67c17bcffdc9d (diff) |
Change all self assignments X=X to (void)X, so that we can turn on a
new gcc warning that complains on self-assignments and
self-initializations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122458 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/ConstantFolding.cpp')
-rw-r--r-- | lib/Analysis/ConstantFolding.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Analysis/ConstantFolding.cpp b/lib/Analysis/ConstantFolding.cpp index 73ee5cd1c3..ded1d0767c 100644 --- a/lib/Analysis/ConstantFolding.cpp +++ b/lib/Analysis/ConstantFolding.cpp @@ -1216,7 +1216,7 @@ llvm::ConstantFoldCall(Function *F, Val.convert(APFloat::IEEEsingle, APFloat::rmNearestTiesToEven, &lost); // Conversion is always precise. - status = status; + (void)status; assert(status == APFloat::opOK && !lost && "Precision lost during fp16 constfolding"); @@ -1313,4 +1313,3 @@ llvm::ConstantFoldCall(Function *F, } return 0; } - |