Go to file
Eli Bendersky f637790102 Fix PR20069: bad loop pragma arguments crash FE
This patch fixes a crash when handling malformed arguments to loop pragmas such
as: "#pragma clang loop vectorize(()".  Essentially any argument which is not an
identifier or constant resulted in a crash.  This patch also changes a couple of
the error messages which weren't quite correct.  New behavior with this patch vs
old behavior:

#pragma clang loop vectorize(1)
OLD: error: missing keyword; expected 'enable' or 'disable'
NEW: error: invalid argument; expected 'enable' or 'disable'

#pragma clang loop vectorize()
OLD: error: expected ')'
NEW: error: missing argument to loop pragma 'vectorize'

#pragma clang loop vectorize_width(bad)
OLD: error: missing value; expected a positive integer value
NEW: error: invalid argument; expected a positive integer value

#pragma clang loop vectorize(bad)
OLD: invalid keyword 'bad'; expected 'enable' or 'disable'
NEW: error: invalid argument; expected 'enable' or 'disable'

http://reviews.llvm.org/D4197

Patch by Mark Heffernan

llvm-svn: 211292
2014-06-19 18:30:15 +00:00
clang Fix PR20069: bad loop pragma arguments crash FE 2014-06-19 18:30:15 +00:00
clang-tools-extra Unbreak the build after r211244. 2014-06-19 00:43:19 +00:00
compiler-rt [sanitizer] Intercept pthread_*attr_get*. 2014-06-19 10:19:57 +00:00
debuginfo-tests relax testcase for LLDB output format compatibility. 2014-03-19 23:06:18 +00:00
libclc Add pown 2014-06-18 19:42:23 +00:00
libcxx Formatting improvements in the <string_view> synopsis suggested by RSmith. No functionality change. 2014-06-18 17:44:04 +00:00
libcxxabi Add a FAQ section, with a question about why the std::exception class destructors live in libc++abi 2014-06-11 16:54:09 +00:00
lld [Mips] Make r26-1.test test case independent from external input files. 2014-06-19 10:18:58 +00:00
lldb Switch over to using object_getClass to get the class of an object. Previously we were 2014-06-19 18:25:51 +00:00
llvm Remove use of removed function, llvm_stop_multithreading 2014-06-19 18:26:28 +00:00
openmp CMake: remove duplicated source file from list 2014-06-02 13:09:24 +00:00
polly Update for ScopStmt iterator name change in LLVM r210927 2014-06-19 16:45:04 +00:00