]> granicus.if.org Git - clang/commit
Fix handling of invalid -O options.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 16 Dec 2014 21:57:03 +0000 (21:57 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 16 Dec 2014 21:57:03 +0000 (21:57 +0000)
commit046ea41e0a46efede23805cd80a4d132ed75d799
tree13049ed6803dfcc0f2815b36f1087e8275018fc6
parente924d9052d9e566af446f154c1eb6fa8d8a3ace1
Fix handling of invalid -O options.

We were checking the value after truncating it to a bitfield.

Thanks to Yunzhong Gao for noticing it.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@224378 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Frontend/CodeGenOptions.def
lib/Frontend/CompilerInvocation.cpp
test/Frontend/invalid-o-level.c