[cfe-commits] r103972 - /cfe/trunk/lib/CodeGen/CGException.cpp
Chandler Carruth
chandlerc at gmail.com
Mon May 17 13:58:49 PDT 2010
Author: chandlerc
Date: Mon May 17 15:58:49 2010
New Revision: 103972
URL: http://llvm.org/viewvc/llvm-project?rev=103972&view=rev
Log:
Fix an ambiguous else warning from GCC by adding some much needed curlies.
Modified:
cfe/trunk/lib/CodeGen/CGException.cpp
Modified: cfe/trunk/lib/CodeGen/CGException.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGException.cpp?rev=103972&r1=103971&r2=103972&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGException.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGException.cpp Mon May 17 15:58:49 2010
@@ -128,12 +128,13 @@
LangOptions Opts = CGM.getLangOptions();
if (Opts.CPlusPlus)
PersonalityFnName = "__gxx_personality_v0";
- else if (Opts.ObjC1)
+ else if (Opts.ObjC1) {
if (Opts.NeXTRuntime) {
if (Opts.ObjCNonFragileABI)
PersonalityFnName = "__gcc_personality_v0";
- } else
+ } else
PersonalityFnName = "__gnu_objc_personality_v0";
+ }
llvm::Constant *Personality =
CGM.CreateRuntimeFunction(llvm::FunctionType::get(llvm::Type::getInt32Ty(
More information about the cfe-commits
mailing list