forked from OSchip/llvm-project
The cloner has nothing to do if any of the main or ISR entrypoints are not
present in the module. llvm-svn: 97232
This commit is contained in:
parent
0521c09d97
commit
ef686dc38d
|
@ -89,6 +89,9 @@ bool PIC16Cloner::runOnModule(Module &M) {
|
|||
if (mainCGN && isrCGN)
|
||||
break;
|
||||
}
|
||||
|
||||
// We have nothing to do if any of the main or ISR is missing.
|
||||
if (! mainCGN || ! isrCGN) return false;
|
||||
|
||||
// Time for some diagnostics.
|
||||
// See if the main itself is interrupt function then report an error.
|
||||
|
|
Loading…
Reference in New Issue