[llvm] r273519 - [IRObjectFile] Try to be defensive, add a break.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 22 17:07:31 PDT 2016
Author: davide
Date: Wed Jun 22 19:07:31 2016
New Revision: 273519
URL: http://llvm.org/viewvc/llvm-project?rev=273519&view=rev
Log:
[IRObjectFile] Try to be defensive, add a break.
Suggested by Sean Silva.
Modified:
llvm/trunk/lib/Object/IRObjectFile.cpp
Modified: llvm/trunk/lib/Object/IRObjectFile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/IRObjectFile.cpp?rev=273519&r1=273518&r2=273519&view=diff
==============================================================================
--- llvm/trunk/lib/Object/IRObjectFile.cpp (original)
+++ llvm/trunk/lib/Object/IRObjectFile.cpp Wed Jun 22 19:07:31 2016
@@ -119,6 +119,7 @@ void IRObjectFile::CollectAsmUndefinedRe
case RecordStreamer::GlobalWeak:
Res |= BasicSymbolRef::SF_Weak;
Res |= BasicSymbolRef::SF_Global;
+ break;
}
AsmUndefinedRefs(Key, BasicSymbolRef::Flags(Res));
}
More information about the llvm-commits
mailing list