mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 18:24:00 +00:00
Fix handling of missing DataLayout in sanitizers.
Pass::doInitialization is supposed to return False when it did not change the program, not when a fatal error occurs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206975 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -226,7 +226,7 @@ void ThreadSanitizer::initializeCallbacks(Module &M) {
|
||||
bool ThreadSanitizer::doInitialization(Module &M) {
|
||||
DataLayoutPass *DLP = getAnalysisIfAvailable<DataLayoutPass>();
|
||||
if (!DLP)
|
||||
return false;
|
||||
report_fatal_error("data layout missing");
|
||||
DL = &DLP->getDataLayout();
|
||||
BL.reset(SpecialCaseList::createOrDie(BlacklistFile));
|
||||
|
||||
|
Reference in New Issue
Block a user