[llvm] r271495 - [CodeView] Remove superfluous bitmath

David Majnemer via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 1 23:21:42 PDT 2016


Author: majnemer
Date: Thu Jun  2 01:21:42 2016
New Revision: 271495

URL: http://llvm.org/viewvc/llvm-project?rev=271495&view=rev
Log:
[CodeView] Remove superfluous bitmath

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp?rev=271495&r1=271494&r2=271495&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp Thu Jun  2 01:21:42 2016
@@ -766,7 +766,7 @@ TypeIndex CodeViewDebug::lowerTypeBasic(
   uint32_t ByteSize;
 
   Kind = static_cast<dwarf::TypeKind>(Ty->getEncoding());
-  ByteSize = Ty->getSizeInBits() >> 3;
+  ByteSize = Ty->getSizeInBits() / 8;
 
   SimpleTypeKind STK = SimpleTypeKind::None;
   switch (Kind) {




More information about the llvm-commits mailing list