aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/ModuleMap.cpp
diff options
context:
space:
mode:
authorAiden Grossman <agrossman154@yahoo.com>2024-01-08 08:30:26 -0800
committerGitHub <noreply@github.com>2024-01-08 08:30:26 -0800
commit053aed2024a1014736ffe35b001710b263c7a4b5 (patch)
treea186b8f2e130de27d7207136a52ba749b61e189b /clang/lib/Lex/ModuleMap.cpp
parent01410103a6eb50436c39f71299773749b7de9dec (diff)
downloadllvm-053aed2024a1014736ffe35b001710b263c7a4b5.zip
llvm-053aed2024a1014736ffe35b001710b263c7a4b5.tar.gz
llvm-053aed2024a1014736ffe35b001710b263c7a4b5.tar.bz2
[X86] Check if machine loop is passed while getting loop alignment (#77283)
After d6bb96e677759375b2bea00115918b2cb6552f5b, calling getPrefLoopAlignment without passing in a pointer to a MachineLoop causes a segmentation fault. This conflicts with the API in TargetLoweringBase where the default MachineLoop pointer passed is nullptr. This patch fixes this by checking if the pointer points to something before enabling the optional functionality.
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions