[PATCH] D24648: Fix unused result from sign extending an Offset.
Stephen Hines via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 16 00:30:07 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL281706: Fix unused result from sign extending an Offset. (authored by srhines).
Changed prior to commit:
https://reviews.llvm.org/D24648?vs=71598&id=71599#toc
Repository:
rL LLVM
https://reviews.llvm.org/D24648
Files:
cfe/trunk/lib/Sema/SemaChecking.cpp
Index: cfe/trunk/lib/Sema/SemaChecking.cpp
===================================================================
--- cfe/trunk/lib/Sema/SemaChecking.cpp
+++ cfe/trunk/lib/Sema/SemaChecking.cpp
@@ -3882,7 +3882,7 @@
// possible.
if (Ov) {
assert(BitWidth <= UINT_MAX / 2 && "index (intermediate) result too big");
- Offset.sext(2 * BitWidth);
+ Offset = Offset.sext(2 * BitWidth);
sumOffsets(Offset, Addend, BinOpKind, AddendIsRight);
return;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24648.71599.patch
Type: text/x-patch
Size: 472 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160916/f7b19a8c/attachment-0001.bin>
More information about the cfe-commits
mailing list