summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2016-01-06 21:11:18 +0000
committerRichard Trieu <rtrieu@google.com>2016-01-06 21:11:18 +0000
commit43b4c821e14f66195929a963861e0ee15dd0b880 (patch)
tree807617090eb48bc06a64084ca3855eb5422ebbb8 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent337b08d8d69c78c2ae11f2ebb9c3495a0ddf986d (diff)
downloadbcm5719-llvm-43b4c821e14f66195929a963861e0ee15dd0b880.tar.gz
bcm5719-llvm-43b4c821e14f66195929a963861e0ee15dd0b880.zip
Improve conditional checking during template instantiation.
When the condition in an if statement, while statement, or for loop is created during template instantiation, it calls MakeFullExpr with only the condition expression. However, when these conditions are created for non-templated code in the Parser, an additional SourceLocation is passed to MakeFullExpr. The impact of this was that non-dependent templated code could produce diagnostics that the same code outside templates would not. Adding the missing SourceLocation makes diagnostics consistent between templated and non-templated code. llvm-svn: 256976
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud