forked from OSchip/llvm-project
In this unreachable code, return an initialized value.
This stops gcc warning about possible uses of an uninitialized value when compiling with assertions turned off. llvm-svn: 74775
This commit is contained in:
parent
31554aba47
commit
ca5303fd1c
|
@ -256,7 +256,7 @@ public:
|
|||
return getTypeAction(NVT) == Promote ? getTypeToTransformTo(NVT) : NVT;
|
||||
}
|
||||
assert(0 && "Unsupported extended type!");
|
||||
return MVT(); // Not reached
|
||||
return MVT(MVT::Other); // Not reached
|
||||
}
|
||||
|
||||
/// getTypeToExpandTo - For types supported by the target, this is an
|
||||
|
@ -557,7 +557,7 @@ public:
|
|||
return getRegisterType(getTypeToTransformTo(VT));
|
||||
}
|
||||
assert(0 && "Unsupported extended type!");
|
||||
return MVT(); // Not reached
|
||||
return MVT(MVT::Other); // Not reached
|
||||
}
|
||||
|
||||
/// getNumRegisters - Return the number of registers that this ValueType will
|
||||
|
|
Loading…
Reference in New Issue