summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorAnders Waldenborg <anders@0x63.nu>2013-10-17 10:25:24 +0000
committerAnders Waldenborg <anders@0x63.nu>2013-10-17 10:25:24 +0000
commita89c1e314545d7a2c079551cee81ca09cfac3160 (patch)
tree65f8b1c181c520ec7c35d351b4d53dedb29e0c14 /clang/lib/CodeGen/CodeGenModule.cpp
parent81857f0bcb70500cc96281954305730e16a1c046 (diff)
downloadbcm5719-llvm-a89c1e314545d7a2c079551cee81ca09cfac3160.tar.gz
bcm5719-llvm-a89c1e314545d7a2c079551cee81ca09cfac3160.zip
llvm-c: Return NULL from LLVMGetFirstTarget instead of asserting
If no targets are registered, LLVMGetFirstTarget currently fails with an assertion. This patch makes it return NULL instead, similarly to how LLVMGetNextTarget would. Patch by Peter Zotov Differential Revision: http://llvm-reviews.chandlerc.com/D1908 llvm-svn: 192878
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud