Skip to content
Commit 045b2270 authored by Richard Smith's avatar Richard Smith
Browse files

When evaluating a __builtin_constant_p conditional, always enter

constant-folding mode regardless of the original evaluation mode.

In order for this to be correct, we need to track whether we're checking
for a potential constant expression or checking for undefined behavior
separately from the evaluation mode enum, since we don't want to clobber
those states when entering constant-folding mode.

llvm-svn: 371557
parent 1e1db800
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment