fix UB in dom tree builder
This commit is contained in:
@@ -73,13 +73,7 @@ namespace SAPFOR
|
||||
const std::vector<BasicBlock*>& getNext() const { return next; }
|
||||
const std::vector<BasicBlock*>& getPrev() const { return prev; }
|
||||
BasicBlock* getDom() const
|
||||
{
|
||||
if (!directDominator)
|
||||
{
|
||||
__spf_print(1, "%s\n", "the dominator tree was built with an error or was not built at all");
|
||||
printInternalError(convertFileName(__FILE__).c_str(), __LINE__);
|
||||
}
|
||||
|
||||
{
|
||||
return directDominator;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user