mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Convert assert(0) to llvm_unreachable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149816 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
#include "llvm/Target/TargetRegisterInfo.h"
|
||||
#include "llvm/ADT/Twine.h"
|
||||
#include "llvm/Support/Dwarf.h"
|
||||
#include "llvm/Support/ErrorHandling.h"
|
||||
using namespace llvm;
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
@@ -110,7 +111,7 @@ unsigned AsmPrinter::GetSizeOfEncodedValue(unsigned Encoding) const {
|
||||
return 0;
|
||||
|
||||
switch (Encoding & 0x07) {
|
||||
default: assert(0 && "Invalid encoded value.");
|
||||
default: llvm_unreachable("Invalid encoded value.");
|
||||
case dwarf::DW_EH_PE_absptr: return TM.getTargetData()->getPointerSize();
|
||||
case dwarf::DW_EH_PE_udata2: return 2;
|
||||
case dwarf::DW_EH_PE_udata4: return 4;
|
||||
|
||||
Reference in New Issue
Block a user