mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-18 10:24:45 +00:00
Make isInt?? and isUint?? template specializations of the generic versions. This
makes calls a little bit more consistent and allows easy removal of the specializations in the future. Convert all callers to the templated functions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99838 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -424,7 +424,7 @@ void MSILWriter::printPtrLoad(uint64_t N) {
|
||||
case Module::Pointer32:
|
||||
printSimpleInstruction("ldc.i4",utostr(N).c_str());
|
||||
// FIXME: Need overflow test?
|
||||
if (!isUInt32(N)) {
|
||||
if (!isUInt<32>(N)) {
|
||||
errs() << "Value = " << utostr(N) << '\n';
|
||||
llvm_unreachable("32-bit pointer overflowed");
|
||||
}
|
||||
|
Reference in New Issue
Block a user