diff --git a/llvm/lib/CodeGen/BasicBlockSections.cpp b/llvm/lib/CodeGen/BasicBlockSections.cpp index 9b985f9f0aff66c9980843f0ad980f5402ca0927..6e58c8fb294646e7c9ef253ee2e03ab954c41795 100644 --- a/llvm/lib/CodeGen/BasicBlockSections.cpp +++ b/llvm/lib/CodeGen/BasicBlockSections.cpp @@ -319,7 +319,8 @@ void computeBBHash(MachineFunction &MF) { } } } - MBB.setHash(Hash); + if(MBB.getBBID()) + MBB.setHash(Hash); } }