aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2021-10-14 15:46:22 -0400
committerAaron Ballman <aaron@aaronballman.com>2021-10-14 15:48:10 -0400
commit68157fe15b238428d0fdbeb38c14afd5bda574da (patch)
tree43c425794171dac35e9f1b9f948d2a64a8de4040 /llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
parent482c53fa0dce16c0edebb494117dcc8dd383427e (diff)
downloadllvm-68157fe15b238428d0fdbeb38c14afd5bda574da.zip
llvm-68157fe15b238428d0fdbeb38c14afd5bda574da.tar.gz
llvm-68157fe15b238428d0fdbeb38c14afd5bda574da.tar.bz2
Fix a crash on valid consteval code.
Not all constants are emitted within the context of a function, so use the module's ASTContext instead because 1) that's the same as the current function ASTContext, and 2) the module can never be null. Fixes PR50787.
Diffstat (limited to 'llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp')
0 files changed, 0 insertions, 0 deletions