diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2014-04-23 12:51:32 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2014-04-23 12:51:32 +0000 |
commit | 119cb2eed523010487e1272596b6a09ae5cf9e46 (patch) | |
tree | edf3b5a09eb95fc5b1ee3dfc7e9e7c1a85d9878d /llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp | |
parent | 9f23b203d3d10403788e9c232e9c5f3656a07b43 (diff) | |
download | bcm5719-llvm-119cb2eed523010487e1272596b6a09ae5cf9e46.tar.gz bcm5719-llvm-119cb2eed523010487e1272596b6a09ae5cf9e46.zip |
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.
llvm-svn: 206975
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp index 61edb7b0544..b90c7b74a63 100644 --- a/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp @@ -345,7 +345,7 @@ FunctionType *DataFlowSanitizer::getCustomFunctionType(FunctionType *T) { bool DataFlowSanitizer::doInitialization(Module &M) { DataLayoutPass *DLP = getAnalysisIfAvailable<DataLayoutPass>(); if (!DLP) - return false; + report_fatal_error("data layout missing"); DL = &DLP->getDataLayout(); Mod = &M; |