diff options
| author | Chris Lattner <sabre@nondot.org> | 2013-01-20 02:54:05 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2013-01-20 02:54:05 +0000 | 
| commit | 8d14053545837ab221c84f3614e65661002a3bda (patch) | |
| tree | 55908f772ac50f032f48683efd751f217f63aa3a /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | 0271af8dc91d0564135a75ae06eb9e153aab5517 (diff) | |
| download | llvm-8d14053545837ab221c84f3614e65661002a3bda.zip llvm-8d14053545837ab221c84f3614e65661002a3bda.tar.gz llvm-8d14053545837ab221c84f3614e65661002a3bda.tar.bz2 | |
trivial micro-optimization: lazily call the virtual method instead of eagerly calling it.
llvm-svn: 172953
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
| -rw-r--r-- | llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index 219fc18..00474ec 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -796,7 +796,7 @@ bool BitcodeReader::ParseMetadata() {      default:  // Default behavior: ignore.        break;      case bitc::METADATA_NAME: { -      // Read named of the named metadata. +      // Read name of the named metadata.        SmallString<8> Name(Record.begin(), Record.end());        Record.clear();        Code = Stream.ReadCode(); | 
